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

[leafnode-list] Fetchnews and Shell Script



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