Questions about shell scripting and cron jobs
I am new to this forum, I've been using Mandrake 10.1 Official for over a year now, for over 7 months exclusively (finally did away with windoze!), and just recently I've decided to try and learn a few new things with linux. I've been trying to work out a way to set my modem to dial up at a certain time every night, download updates to my anti-virus (which is f-prot), run my anti-virus, and then run chkrootkit. I've written an insanely simple shell script which looks like this:
perl check-updates.pl &
./f-prot / -silent -report=/home/carl/virusscan
I then used vim to edit my root crontab to run this script at 2 a.m. Basically what happens is it runs wvdial, connects to the internet, and that's it. I tried to take the wvdial command out, put it in the crontab first, then run the modified shell script, again all it runs is wvdial. Also, if I just connect to the internet myself, then run the shell script, it runs chkrootkit first, then f-prot, then starts running the check-updates. To be sure I'm using the wrong syntax or forgetting to add something, but like I said, I'm just recently learning how to use this. Any ideas or suggestions? Any would be most appreciated.