- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- crontab job
Operating System - HP-UX
1756816
Members
2679
Online
108853
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-14-2007 02:11 PM
тАО11-14-2007 02:11 PM
Re: crontab job
Just a better way to work with cron
Put these line in crontab files.
#minute (0-59),
#| hour (0-23),
#| | day of the month (1-31),
#| | | month of the year (1-12),
#| | | | day of the week (0-6 with 0=Sunday).
#| | | | | commands
0 2 * * 0,4 /etc/cron.d/logchecker
Thanks to UGU :)
Kapil
Put these line in crontab files.
#minute (0-59),
#| hour (0-23),
#| | day of the month (1-31),
#| | | month of the year (1-12),
#| | | | day of the week (0-6 with 0=Sunday).
#| | | | | commands
0 2 * * 0,4 /etc/cron.d/logchecker
Thanks to UGU :)
Kapil
I am in this small bowl, I wane see the real world......
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2007 02:18 PM
тАО11-14-2007 02:18 PM
Re: crontab job
>my above setting is correct?
Yes. I finally convinced Yogeeraj that his complex version wasn't needed.
See his:
to summarize: this should work fine for you:
Yes. I finally convinced Yogeeraj that his complex version wasn't needed.
See his:
to summarize: this should work fine for you:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2007 03:17 PM
тАО11-14-2007 03:17 PM
Re: crontab job
thx reply,
I have one addition question , if I want run on 1st of month when if it is Mon or Tue , can advise how to set ? thx
I have one addition question , if I want run on 1st of month when if it is Mon or Tue , can advise how to set ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2007 04:26 PM
тАО11-14-2007 04:26 PM
Re: crontab job
>if I want run on 1st of month when if it is Mon or Tue, can advise how to set?
You want to run on first AND ONLY if it is Mon or Tue?
You reverse what Yogeeraj had. (And fiddle with it a little. :-)
00 07 * * 1,2 [ $(date +%d) -eq 1 ] && my_script #run if 1st
Note you can also put the date check in the script so you don't clutter up the crontab.
You want to run on first AND ONLY if it is Mon or Tue?
You reverse what Yogeeraj had. (And fiddle with it a little. :-)
00 07 * * 1,2 [ $(date +%d) -eq 1 ] && my_script #run if 1st
Note you can also put the date check in the script so you don't clutter up the crontab.
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP