1833530 Members
3027 Online
110061 Solutions
New Discussion

Crontab error

 
jay_mehta
New Member

Crontab error

Hi I am getting error while running crontab -e or crontab -l :
# crontab -l

static

Cron file selection? (select from above): static

Invalid Cron File name

Can any one please help me in that ?
6 REPLIES 6
Dennis Handly
Acclaimed Contributor

Re: Crontab error

This isn't the HP-UX crontab(1). (Unless that is the contents of the crontab.)
What does "whence crontab" show?
jay_mehta
New Member

Re: Crontab error

Its HP crontab(1) . Here is the o/p of whence command , its a wrapper script :
[NEW : root@cs2-v2 : /var/spool/cron/crontabs]
# uname -a
HP-UX cs2-v2 B.11.23 U ia64 0838911998 unlimited-user license
[NEW : root@cs2-v2 : /var/spool/cron/crontabs]
# whence crontab
/usr/local/bin/cron_wrapper.sh
[NEW : root@cs2-v2 : /var/spool/cron/crontabs]
Dennis Handly
Acclaimed Contributor

Re: Crontab error

>It's HP crontab(1)

No it isn't. It looks like some alias has hijacked your crontab. HP-UX's is in /usr/bin/crontab.
jay_mehta
New Member

Re: Crontab error

I checked for the other servers and they have the same wrapper script ..Is there any other way to solve it ?
Steven Schweda
Honored Contributor

Re: Crontab error

> [...] Is there any other way to solve it ?

Solve what? It's doing what you asked.

Remove the alias?

Fix the script?

Change your path?

Specify a full path to the "crontab" which
you would really like to run?
Dennis Handly
Acclaimed Contributor

Re: Crontab error

>Is there any other way to solve it?

We would have to see & debug your script. You could add a "set -x" to it to trace it.