Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi i ahve configured cronjobs for certain backups on my clearcase server but i am getting some dump emails stating like CLBU VOB Admin in subject and the contents says like
Cron: can't change directory to your home directory.
Your commands will not be executed.
Sample nightly invocation of calendar. If you wish to run calendar,
just uncomment the next line.
0 4 * * * exec /usr/bin/calendar -
is there a way to findout which script is a problem as i have 4-5 scripts running
and i can't run each of them right away there are some backup scripts also
You say that you're using HP UX....I dont know if crontabs have different format in HP UX, but In Red Hat 9, this is not the correct format....
The format in Red Hat is
Minutes Hour DayOfMonth Month DayOfWeek Command
So a sample crontab can be
30 4 * * * /usr/bin/dmesg
(That means every day at 4:30 am, run the command 'dmesg'. So there are only 6 fields in a crontab file in Red Hat Linux. If HP UX has a similar format then take a look at your crontab file:
The line below matches more with the Red Hat format
Sample nightly invocation of calendar. If you wish to run calendar,
just uncomment the next line.
0 4 * * * exec /usr/bin/calendar
The line in bold is not correct unless HP UX follows a different format then Red Hat...so check the format of the command.
Also, check if users have execute permissions to their home directories set properly, otherwise, you wont be able to run a script that resides in the user's home directory.
If we speak about hp-ux, not linux that
man cron and check this files and dirs
FILES
/var/adm/cron Main cron directory
/var/spool/cron/atjobs Directory containing at and batch job files
/var/spool/cron/crontabs Directory containing crontab files
/var/adm/cron/log Accounting information
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.