- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: crontab not working on HP-UX 11.23 ia64
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2008 11:16 PM
тАО11-12-2008 11:16 PM
crontab not working on HP-UX 11.23 ia64
I tried the following verbose steps and could not make cron work. I see that the the cron account file (/usr/lib/cron/log) contains ts=132. Is this an error code?
Please help me on this.
bash-3.2# crontab -l
* * * * * touch /tmp/cronfile
bash-3.2# ls -l /tmp/cronfile
/tmp/cronfile not found
bash-3.2# date
Wed Nov 12 22:57:49 PST 2008
bash-3.2# date
Wed Nov 12 22:57:51 PST 2008
bash-3.2# ls -l /tmp/cronfile
/tmp/cronfile not found
bash-3.2# date
Wed Nov 12 23:00:06 PST 2008
bash-3.2# tail -f /usr/lib/cron/log
< root 1239 c Wed Nov 12 22:57:00 PST 2008 ts=132
> CMD: touch /tmp/cronfile
> root 1245 c Wed Nov 12 22:58:00 PST 2008
< root 1245 c Wed Nov 12 22:58:01 PST 2008 ts=132
> CMD: touch /tmp/cronfile
> root 1432 c Wed Nov 12 22:59:00 PST 2008
< root 1432 c Wed Nov 12 22:59:00 PST 2008 ts=132
> CMD: touch /tmp/cronfile
> root 1434 c Wed Nov 12 23:00:00 PST 2008
< root 1434 c Wed Nov 12 23:00:01 PST 2008 ts=132
bash-3.2# ls -l /tmp/cronfile
/tmp/cronfile not found
bash-3.2# /sbin/init.d/cron stop
cron stopped
bash-3.2# /sbin/init.d/cron start
cron started
bash-3.2# ps -ae | grep cron
2421 ? 0:00 cron
bash-3.2# kill -s SIGHUP 2421
bash-3.2# date
Wed Nov 12 23:09:58 PST 2008
bash-3.2# ls -l /tmp/cronfile
/tmp/cronfile not found
Thanks,
Ramprasad B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2008 11:22 PM
тАО11-12-2008 11:22 PM
Re: crontab not working on HP-UX 11.23 ia64
You may need to add the path for touch in your cron command line.
try this :-
# * * * * * /usr/bin/touch /tmp/crontabfile
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2008 11:24 PM
тАО11-12-2008 11:24 PM
Re: crontab not working on HP-UX 11.23 ia64
* * * * * touch /tmp/cronfile
???
Better try with something that make sence:
*/5 * * * * touch /tmp/file
(every 5 minutes)
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2008 11:27 PM
тАО11-12-2008 11:27 PM
Re: crontab not working on HP-UX 11.23 ia64
I user absolute path to touch command, still cron daemon is unable to execute the comman -
/usr/bin/touch /tmp/cronfile
Thanks,
Ramprasad B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2008 11:28 PM
тАО11-12-2008 11:28 PM
Re: crontab not working on HP-UX 11.23 ia64
Hi,
I used the absolute path for touch command, but still the cron daemon is unable to execute the command -
/usr/bin/touch /tmp/cronfile
Thanks,
Ramprasad B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2008 11:30 PM
тАО11-12-2008 11:30 PM
Re: crontab not working on HP-UX 11.23 ia64
Only the interval is changed :)
Thanks,
Ramprasad B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2008 08:40 AM
тАО11-13-2008 08:40 AM
Re: crontab not working on HP-UX 11.23 ia64
This indicates that signal 4 (132-128), illegal instruction was received. It could be sh(1)?
The last time something similar happen, it was a bogus TZ variable, what do you have? Any corefiles hanging around?
>Ivan: */5 * * * * touch /tmp/file
This syntax isn't supported on HP-UX.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2008 11:38 PM
тАО11-13-2008 11:38 PM
Re: crontab not working on HP-UX 11.23 ia64
bash-3.2# find / -name core
/var/opt/dce/dced/core
/var/spool/cron/atjobs/core
bash-3.2#
How do i examine them?
Thanks,
Ramprasad B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2008 11:54 PM
тАО11-13-2008 11:54 PM
Re: crontab not working on HP-UX 11.23 ia64
Did you check weather cron demon is running or not
ps -aef | grep -i cron
root 2894 1 0 Sep 28 ? 0:02 /usr/sbin/cron
If not then start it
Give full absolute path for each command which is using in crontab file.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2008 12:19 AM
тАО11-14-2008 12:19 AM
Re: crontab not working on HP-UX 11.23 ia64
22770 ? 0:00 cron
bash-3.2# crontab -l
* * * * * /usr/bin/touch /tmp/cronfile
bash-3.2#
But, no positive results.
Thanks,
Ramprasad