- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- schedule Script
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
тАО11-01-2005 07:58 PM
тАО11-01-2005 07:58 PM
Is there any possible without using Cronjob there is any other shell script to run some commands every 1 min form 9am to 9pm
Solved! Go to Solution.
- Tags:
- crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2005 08:02 PM
тАО11-01-2005 08:02 PM
Re: schedule Script
man at
man batch
- Tags:
- AT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2005 08:05 PM
тАО11-01-2005 08:05 PM
Re: schedule Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2005 08:25 PM
тАО11-01-2005 08:25 PM
Re: schedule Script
:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2005 08:26 PM
тАО11-01-2005 08:26 PM
Re: schedule Script
-Arun
- Tags:
- sleep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2005 08:29 PM
тАО11-01-2005 08:29 PM
Re: schedule Script
i am using output to some file using print command but that output not in good format for eg:
i need like this
ID Name Time
xx yyy yyy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2005 08:31 PM
тАО11-01-2005 08:31 PM
Re: schedule Script
Script like follows will do it.
i=0900
while [$i -le 2100]
do
echo $i
((i+=1))
done >> /tmp/test.txt
while true
do
current_time=$(date "+%H%M")
file_time=$(grep -iq ${current_time} /tmp/tes.txt 2>/dev/null)
if [[ ${current_time} -eq ${file_time} ]];then
your_program to be excuted
else
exit 1
fi
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2005 08:56 PM
тАО11-01-2005 08:56 PM
SolutionPrepare a file with timestamps 1 min apart
type -i i=0900
while [ $i -le 2100 ]
do
printf "%.4d\n" $i
((i+=1))
done > /tmp/some_file
Now start this script.
while true
do
current_time=$(date "+%H%M")
file_time=$(grep -iq ${current_time} /tmp/some_file 2>/dev/null)
if [[ ${current_time} -eq ${file_time} ]];then
"execute_your_program"
sleep
fi
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2005 09:06 PM
тАО11-01-2005 09:06 PM
Re: schedule Script
>> ID Name Time
>> xx yyy yyy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2005 09:10 PM
тАО11-01-2005 09:10 PM
Re: schedule Script
i generating some reports to file(report.txt)by using glance
Format should be
CPU Memory Disk
12 78 1
b