- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: crontab
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
тАО07-01-2002 05:44 AM
тАО07-01-2002 05:44 AM
crontab
i need to make a crontab that executes a script every night
at 4 am. What is the right crontab format?
I have made a man of crontab and cron, but it doesn't explain how to put the hour and how to execute it.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2002 07:47 AM
тАО07-01-2002 07:47 AM
Re: crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2002 03:53 PM
тАО07-01-2002 03:53 PM
Re: crontab
If using an older style of cron, or not using '/etc/crontab', then you'd just drop the 'username' field.
The 'crontab' command will actually take you into an editor to modify the user's crontab if you don't specify a file. If doing that, you'll want to make sure the user you are adding the crontab for doesn't already have one, or if they do, that you also include them in your update.
The following commands might be useful to you:
# List
crontab -l -u
# Edit (using '$VISUAL') crontab for
crontab -e -u
'man crontab' lists these. For the format of the 'crontab' files, you'll want to read 'man 5 crontab'.
On most systems, the default '$VISUAL' editor is '/bin/vi'. If you aren't familier with Vi, you might want to change that, and the '$EDITOR' environment variables to something you are more comfortable with.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2002 10:29 PM
тАО07-03-2002 10:29 PM
Re: crontab
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2002 10:56 PM
тАО07-03-2002 10:56 PM
Re: crontab
So I think you better start your program before or after 4AM.
#crontab -l list current schedule.
Good luck