- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- List -all- cron scheduled jobs
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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
12-17-2001 11:13 AM
12-17-2001 11:13 AM
Thanks,
Tom
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 11:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 11:21 AM
12-17-2001 11:21 AM
Re: List -all- cron scheduled jobs
I don't think you can do this with "crontab -l" But you can do this #> more /var/spool/cron/crontabs/*
This will give you what you need in HPUX 11.00 and 10.20 ....
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 11:33 AM
12-17-2001 11:33 AM
Re: List -all- cron scheduled jobs
You can use
#pg /var/spool/cron/crontabs/* to list all cronjobs
OR
for i in `cat /usr/lib/cron/cron.allow`
{
echo "For User {i} : "
crontab -l $i
}
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 05:14 PM
12-17-2001 05:14 PM
Re: List -all- cron scheduled jobs
I agree with Patrick.
Also, for ease of identification, you might also want to identify the cronjob you are listing:
# for user in /var/spool/cron/crontabs/*;do echo "cron job for $user:";cat $user;done
Note also that scheduled jobs are usually by cron but they can be via at as well.
If you are looking for a rogue scheduled job, you might also want to list out files in atjobs ie.
# for user in /var/spool/cron/atjobs/*;do echo "at job for $user";cat $user;done
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com