- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Run limited jobs in parallelism
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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
03-30-2004 06:21 PM
03-30-2004 06:21 PM
I have have to run more backup scripts in parallel, I start first 4 backups, when any of this backup are finished I want to start the next one in queue. If I am using wait I have to wait for all processes before I can start the next backup i queue.
Is there any method to do this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 06:23 PM
03-30-2004 06:23 PM
Solutionyou could start them all with the at-command. Define a special queue (man queuedefs) for your backups and allow 4 simultanious jobs.
good luck,
Thierry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 06:26 PM
03-30-2004 06:26 PM
Re: Run limited jobs in parallelism
Why don't u try cron
see man cron for details.
Reg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 06:54 PM
03-30-2004 06:54 PM
Re: Run limited jobs in parallelism
Have a backup script as follows,
function get_ticket {
SLEEP=YES
while [ $SLEEP = "YES" ]
do
TICKET_DIR=/tmp/tickets
TICKET_FILE=$TICKET_DIR/$0_ticket
TICKET_USED=`ls -l /tmp/tickets |wc -l`
if [ $TICKET_USED -ge 4 ]
then
echo No tickets available now sleeping ...
SLEEP=YES
sleep 900
else
echo There are $TICKET_USED tickets currently used lemme use the next
touch $TICKET_DIR/$0_ticket
SLEEP=NO
fi
done
}
function backup {
BACKUP_SCRIPT #Execute the backup commands
}
function release_ticket {
echo $0 Backup is complete lemee release the ticket
rm $TICKET_FILE
if [ $? -ne 0 ]
then
echo Unable to release ticket $TICKET_FILE
fi
}
# Do the actual stuff
get_ticket
backup
release_ticket
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 06:55 PM
03-30-2004 06:55 PM