- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: run schedule batch file
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
10-01-2009 12:23 AM
10-01-2009 12:23 AM
i have hp-ux 11i v1 and i want to run batch file in my OS every 1 month and another batch file every week . but i dont know how to do that
any help please
regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2009 12:32 AM
10-01-2009 12:32 AM
Re: run schedule batch file
minute hour monthday month weekday command
00 00 01 * * command # first of month
00 00 * * 0 command # every sunday
Just adjust the MM, HH, MD and WD fields and desired.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2009 12:51 AM
10-01-2009 12:51 AM
SolutionIf you want to run the batch using root privilege:
1. Login to root.
2. Keep a backup using # crontab -l > crontab.orig
3. Use #crontab -e [ To edit crontab ]
4. Add the below entry with the batch script name & path,
00 00 01 * * /home/user/batch1 # 1st of Every Month, midnight.
00 00 * * 1 /home/user/batch2 # Every Sunday midnight.
5. Save with :wq!
6. Veryfy with : # crontab -l
7. Wait for execution on schedule date and check...
________________________________________
FYI:
first 5 entry in cron represents as below:
- 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).
* more : # man crontab
_________________________________________
Cheers.
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2009 05:20 AM
10-01-2009 05:20 AM
Re: run schedule batch file
but now i face problem in makeing my batch file my batch file is oracle sql command.
what i need
1. login to oracle user
2. run sqlplus
3. run the sql command
how i can collect these steps in batch file and shedule this file.
please find the attached file its contain the sql comman.
any help please.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2009 05:59 AM
10-01-2009 05:59 AM
Re: run schedule batch file
Ex: # su - oracle -c command_file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2009 09:55 PM
10-02-2009 09:55 PM