[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] Fetchnews and Shell Script
Why bother with all that? Just set up a cron job to run fetchnews -P
periodically. It will just exit if there's nothing in out.going.
Walt
On Sat, Mar 25, 2000 at 10:06:25AM -0800, Jeff Grossman wrote:
> Hello,
>
> I would like to create a shell script, which will look into out.going every
> so often and see if there are any contents, and if there are, to run
> fetchnews -P. I am not very knowledgable with shell scripts, and not sure
> how I would go about seeing if there are any contents in out.going. Could
> somebody help me? I was thinking something like the following, but I think
> I am missing something:
>
> cd /var/spool/news/out.going
> if == ? then fetchnews -P
> fi
>
> Thanks,
> Jeff
>
> -----
> Jeff Grossman (jeff@xxxxxxxxxxx)
>
>
> --
> leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
> To unsubscribe, send mail with "unsubscribe" in the subject to the list
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list