- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: List of -all- scheduled cron 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
Forums
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
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-18-2001 07:09 AM
тАО12-18-2001 07:09 AM
Thanks,
Tom
Sorry if this is posted twice. I sent it yesterday, but cannot find any trace of it today.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2001 07:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2001 07:14 AM
тАО12-18-2001 07:14 AM
Re: List of -all- scheduled cron jobs.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2001 07:14 AM
тАО12-18-2001 07:14 AM
Re: List of -all- scheduled cron jobs.
all the cronjobs are resided in this directory.
/var/spool/cron/crontabs
There will be different files for each cron jobs by user id.
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2001 07:21 AM
тАО12-18-2001 07:21 AM
Re: List of -all- scheduled cron jobs.
#!/usr/bin/ksh
CRONTABS=/var/spool/cron/crontabs
for USER in `ls $CRONTABS`
do
echo "$USER: "
grep -v "^#" $USER
echo ""
done
Executing this script will give you crontab entries by user.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2001 07:22 AM
тАО12-18-2001 07:22 AM
Re: List of -all- scheduled cron jobs.
Your previous posting is still out there. You can check your last posts in your user profile on the left column.
Anyway, if you are looking at scheduled jobs, don't forget at jobs as well.
To list at jobs, run
# cat /var/spool/cron/atjobs/*
In fact, for ease of identification, you can wrap both in echo statements:
# for user in /var/spool/cron/crontabs/* /var/spool/cron/atjobs/* ; do echo $user cron/at job ; cat $user ; done
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2001 07:24 AM
тАО12-18-2001 07:24 AM
Re: List of -all- scheduled cron jobs.
have a look at the /var/spool/cron directory. You can find all cron job files in 'crontabs' directory. Also you can find all 'at' jobs in 'atjobs' directory.
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2001 07:24 AM
тАО12-18-2001 07:24 AM
Re: List of -all- scheduled cron jobs.
please replace grep -v "^#" $USER as
grep -v "^#" ${CRONTABS}/${USER}
-Sri