1831221 Members
3081 Online
110021 Solutions
New Discussion

Cron Help

 
SOLVED
Go to solution
Steven Chen_1
Super Advisor

Cron Help

Hi,

I have cold installed hpux 11i and can't use cronjob.

cron is started, and crontab is 7555 (r-sr-sr-t). Using crontab -l I get error message as
"crontab: can't open your crontab file".

Can someone help? Very appreciated.

Steven
Steve
5 REPLIES 5
harry d brown jr
Honored Contributor
Solution

Re: Cron Help

Are you the "root" user? Does /var/adm/cron directory exist?
Live Free or Die
Steven Chen_1
Super Advisor

Re: Cron Help

Yes, as root, /var/adm/cron exists.
Steve
A. Clay Stephenson
Acclaimed Contributor

Re: Cron Help

Hi Steven:

Check to see if you have a file /var/spool/cron/crontabs/username
(e.g.) root;

if not, the easy anyswer is to create one:
cp /dev/null /var/spool/cron/crontabs/root
chmod 400 /var/spool/cron/crontabs/root
If it ain't broke, I can fix that.
Jon Mattatall
Esteemed Contributor

Re: Cron Help

Try crontab -e
If you don't have an existing crontab file, -l won't work.

Jon
A little knowledge is dangerous - none is absolutely terrifying!!!
Steven Chen_1
Super Advisor

Re: Cron Help

Special thank to Clay, you're a superman.

Steven
Steve