- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: command to execute a script periodically
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
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
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
11-14-2001 08:26 AM
11-14-2001 08:26 AM
command to execute a script periodically
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 08:29 AM
11-14-2001 08:29 AM
Re: command to execute a script periodically
Use the cron utility.
As root enter the command crontab -e
at the end of your vi session enter
# "Description of script"
00 3 * * 5 "Absolute Path of Script" > /dev/null 2>&1
Good Luck,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 08:30 AM
11-14-2001 08:30 AM
Re: command to execute a script periodically
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 08:41 AM
11-14-2001 08:41 AM
Re: command to execute a script periodically
Cron is the tool for this
man crontab for more details and look for examples.
It is pretty simple to setup.
Goodluck,
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 08:50 AM
11-14-2001 08:50 AM
Re: command to execute a script periodically
You can use cron to schedule execution of a command/script. Use man crontab for more help.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 10:06 AM
11-14-2001 10:06 AM
Re: command to execute a script periodically
A more useful approach would be this: Make a make_recovery tape every night - takes less than an hour and saves countless hours of headaches when you do have server issues. Also, mirror your rook disk. If you need help with these commands, then post a new question.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 11:24 AM
11-15-2001 11:24 AM
Re: command to execute a script periodically
I would use cron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 11:47 AM
11-15-2001 11:47 AM
Re: command to execute a script periodically
I built the following based on tips from the forum. Insure the admin has your login in the cron.allow file. Then crontab -e, and input your min.,hour,date, month, day,and script to execute.
# min hour date month day command
# 0-59 0-23 1-31 1-12 0-6 redirect the output
# 30 6 * * * /home/dlamar/work/omaha/omahaftp
0 7 * * 1-5 /home/dlamar/work/bklogs/userbk.log
30 14 * * 5 /home/dlamar/work/bklogs/makrec.log
dl