in reply to crontab question
When run from the command line, this worked fine, but when run from cron, $db$i+14 and $db$i+15 were not matching the lines they were supposed to. Once I replaced $i+14 and $i+15 with $i+17 and $i+18 respectively, I got the cron job to do exactly what I wanted. BTW, the job in the crontab was:@db = `more $rxdb`; if ($db[$i+14] =~ m/yes/ && $db[$i+15] =~ m/yes/) {
So, it looks like cron added three extra rows while performing the @db = `more $rxdb` command. Thanks for all your help and suggestions. Regards, Stacy.0 12 * * * /path/to/script > /path/to/error/log 2>&1
|
|---|