
starting a process when other die... and crontab
Hi,
I'm downloading, preprocessing, and indexing some newspapers;
I have a crontab like this:
#nation-wide
58 2 * * 0-6 /scripts/DownloadNewspapers.pl www.nytimes.com
#preprocessing stuff here
*****
#indexing stuff here
*****
I need the preprocessing process starting ONLY when the download process
has ended. I can use top to see is DownloadNewspapers.pl
is still alive or not, but this imply to create a script that is only
'hearing' processes... and has to be working the whole day, like a daemon.
Does anybody have a better, more elegant solution? (I'm sure that there must
be a Unix trick to do that...)
Thanks in advance,
Jose