B
Bucker
Dear Folks,
I have a Perl application that just unzips a zip file once per day.
Perl Program is as follows: (daily.pl is program name)
system("cd /home/website/www/htdocs/batch/");
system("unzip -o /home/website/www/htdocs/batch/images.zip");
That is it..i also send a email to myself once this is completed but
that isn't the issue
because I receive the email every day.
Now..when I run this from the SSH prompt in the batch directory, (perl
daily.pl)
it runs like a champ..no problems no errors.
When I run this from a cron job. The unzip never occurs but I get the
email.
Here is the cron job
15 12 * * * cd /home/website/www/htdocs/batch; perl daily.pl
Now the above launches once a day because I receive the email in
daily.pl. My only issue is that
the unzip -o command in the daily.pl doesn't run. Any one have a
suggestion?
Regards,
Jim
I have a Perl application that just unzips a zip file once per day.
Perl Program is as follows: (daily.pl is program name)
system("cd /home/website/www/htdocs/batch/");
system("unzip -o /home/website/www/htdocs/batch/images.zip");
That is it..i also send a email to myself once this is completed but
that isn't the issue
because I receive the email every day.
Now..when I run this from the SSH prompt in the batch directory, (perl
daily.pl)
it runs like a champ..no problems no errors.
When I run this from a cron job. The unzip never occurs but I get the
email.
Here is the cron job
15 12 * * * cd /home/website/www/htdocs/batch; perl daily.pl
Now the above launches once a day because I receive the email in
daily.pl. My only issue is that
the unzip -o command in the daily.pl doesn't run. Any one have a
suggestion?
Regards,
Jim