- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to Run a part of script after 24 hours
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
тАО01-05-2005 05:36 PM
тАО01-05-2005 05:36 PM
how to Run a part of script after 24 hours
I want to run a particuar part of a script after 24 hours. How can i do that.
Pl. suggest
Thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2005 05:43 PM
тАО01-05-2005 05:43 PM
Re: how to Run a part of script after 24 hours
U can use the sleep command before the part that you want run after 24 h
for example:
sleep 86400
commands
Regards
hassoun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2005 06:04 PM
тАО01-05-2005 06:04 PM
Re: how to Run a part of script after 24 hours
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2005 06:13 PM
тАО01-05-2005 06:13 PM
Re: how to Run a part of script after 24 hours
And why is that?
Just curious..
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2005 06:18 PM
тАО01-05-2005 06:18 PM
Re: how to Run a part of script after 24 hours
[ALADIN:/] crontab -l
# minute hour(0-23) monthday(0-31) monthday(1-12) weekday(0-6) Command
00 00 * * 4 sh /script/App_shutdown.sh
Otherwise: user sleep function in shell:
Look at Basic shell doc at:
www.docs.hp.com/en/B2355-90046/
You can get system time by this script:
Gethour=`date +"%H"`
if $Gethour=1 then
command 1
else
fi
Regard
tienna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2005 06:19 PM
тАО01-05-2005 06:19 PM
Re: how to Run a part of script after 24 hours
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2005 06:19 PM
тАО01-05-2005 06:19 PM
Re: how to Run a part of script after 24 hours
Of course that requires it to be a separate scipt or started with a option to indicate that a particular part of it is to be run.
Regards,
Trond