[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] fetchnews -P with empty queue



Grahame Cooper schrieb am Samstag, den 28. Dezember 2002:

> # If there are articles waiting to be posted, post them
> if ! [ `ls /var/spool/news/out.going | wc -l` -eq 0 ];then
>     /usr/local/sbin/fetchnews -P
> fi

This is less portable than:

if [ "x`ls /var/spool/news/out.going | wc -l`" != "x0" ] ; then
  /usr/local/sbin/fetchnews -P
fi

Remember to ALWAYS report the leafnode version you're using.

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list