I'm trying to cron a perl script on my solaris 8 server and I'm having problems?
Question 1.
should I cron the script as root or a different user?
Question 2.
I created a different user and submitted the following cron job. crontab mycronfile
contents of mycronfile: 2 0 * * * /usr/local/dhcp/dhcp.pl &
I received the following email from cron as root:
Your "cron" job on sticky.internal.com
/usr/local/dhcp/dhcp.pl &
produced the following output:
sh: /usr/local/dhcp/dhcp.pl: cannot execute.
From the amount of e-mail’s received, I think the cron syntax is wrong among other things; I need the script to run every 2 min. What am I doing wrong?
StickyBit.
Question 1.
should I cron the script as root or a different user?
Question 2.
I created a different user and submitted the following cron job. crontab mycronfile
contents of mycronfile: 2 0 * * * /usr/local/dhcp/dhcp.pl &
I received the following email from cron as root:
Your "cron" job on sticky.internal.com
/usr/local/dhcp/dhcp.pl &
produced the following output:
sh: /usr/local/dhcp/dhcp.pl: cannot execute.
From the amount of e-mail’s received, I think the cron syntax is wrong among other things; I need the script to run every 2 min. What am I doing wrong?
StickyBit.