- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- List -all- cron scheduled jobs
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
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
тАО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