[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] suggestion for next version....
Russell J. Romano wrote:
> I run fetchnews from within a script that brings up my PPP connection.
> I run this script via cron in the middle of the night. I have a slow
> news server and find that fetchnews often runs for a LONG time without
> downloading all that many articles. I know there is a maxfetch variable
> (or something to that affect) that says download only x articles in one
> session. I would like to see a maxtime option. That would allow me to say
> download everything you can get in 2 hours and then stop.
Insert the following lines in your script:
fetch & # I don't know how exactly you call fetch
( sleep 7200 # wait two hours
if [ `cat /var/run/news.fetch.lck` -eq $fetchpid ]
kill -INT $fetchpid
With this script, you avoid killing a process which has acquired fetch's
PID during the last two hours. The advantage of using a script is (IMO)
that it is much more flexible than a maxtime option. Furthermore, if
maxtime hits frequently, the newsgroups at the end of your list will
never be fetched because fetch always gets the groups at the top of
the list only. Therefore, I am rather not inclined to use such an option.
/* Cornelius Krasel, U Wuerzburg, Dept. of Pharmacology, Versbacher Str. 9 */
/* D-97078 Wuerzburg, Germany email: phak004@xxxxxxxxxxxxxxxxxxxxxx SP4 */
/* "Science is the game we play with God to find out what His rules are." */
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list