[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] fetchnews -P with empty queue
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Matthias Andree wrote:
> 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.
>
Thanks, I'm a total newbie re. bash scripting.
Leafnode 1.9.27 by the way.
Happy New Year
- --
- --------------------------------------
Grahame Cooper
17 Hathaway Drive
Bolton
BL1 7RY
Tel. +44 1204 301292
Email. Grahame@xxxxxxxxxxxxxxxx
======================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+DkxEqa5Q84ryhtkRApI6AJ9IJkNC0Kg/ATRLfY/yZLOleByiYQCfW9ow
PgaEZGmJzh3lQXfAXzEfoOU=
=nXM/
-----END PGP SIGNATURE-----
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list