- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: stopping and restarting jobs' queue
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
06-09-2005 08:26 AM
06-09-2005 08:26 AM
I have a queuedefs file like this:
a.4j1n
b.2j2n90w
d.1j0n1w
I defined the "d" queue for runing only one job at a time and I need to stop this queue for make backup of the oracle database. I stop the queue modifying the line of queuedefs to "d.0j0n1w". I stream jobs that I need to run after the backup finalizes and I need jobs run in order I streamed them, but, when I restart the queue, the jobs run in aleatory order.
Can anybody help me ?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 08:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 09:22 AM
06-09-2005 09:22 AM
Re: stopping and restarting jobs' queue
Refering to the wrong order:
When queue is stopped I stream jobs that execute large cobol programs that I need run at night with nobody working. Every cobol program needs to run in order it has been streamed. If I stream first a job that runs the program called A and after this I stream another job that runs program B, and some user streams a job for program C I need they run in order they has been streamd beacause program B needs that program A has finished for make their job and finally can run the user program C.
Sorry for my bad explain of the problem.
Thanks for your interest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 09:26 AM
06-09-2005 09:26 AM
Re: stopping and restarting jobs' queue
what does at -l -q "a|b|c|d" say after you queue the jobs??
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 09:39 AM
06-09-2005 09:39 AM
Re: stopping and restarting jobs' queue
The message I recive after queue jobs is like this:
From dimpsg@itaca.itaca.mgc.es Thu Jun 9 00:01:02 MET 2005
Received: (from dimpsg@localhost)
by itaca.itaca.mgc.es (8.11.1/8.11.1) id j58M12B19139
for dimpsg; Thu, 9 Jun 2005 00:01:02 +0200 (METDST)
Date: Thu, 9 Jun 2005 00:01:02 +0200 (METDST)
From: dimpsg@itaca.itaca.mgc.es
Message-Id: <200506082201.j58M12B19139@itaca.itaca.mgc.es>
warning: commands will be executed using /usr/bin/sh
job 1118268067.d at Thu Jun 9 00:01:02 2005
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 09:45 AM
06-09-2005 09:45 AM
Re: stopping and restarting jobs' queue
at -l -q d
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 09:49 AM
06-09-2005 09:49 AM
Re: stopping and restarting jobs' queue
This is:
$ at -l -q d
1118353786.d Thu Jun 9 23:49:46 2005
1118353788.d Thu Jun 9 23:49:48 2005
1118353789.d Thu Jun 9 23:49:49 2005
1118353790.d Thu Jun 9 23:49:50 2005
1118353791.d Thu Jun 9 23:49:51 2005
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 09:54 AM
06-09-2005 09:54 AM
Re: stopping and restarting jobs' queue
1118353786.d Thu Jun 9 23:49:46 2005
1118353788.d Thu Jun 9 23:49:48 2005
1118353789.d Thu Jun 9 23:49:49 2005
1118353790.d Thu Jun 9 23:49:50 2005
1118353791.d Thu Jun 9 23:49:51 2005
Do you say that 1118353791.d run before 1118353786.d?? Or something similar??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 09:57 AM
06-09-2005 09:57 AM
Re: stopping and restarting jobs' queue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 09:58 AM
06-09-2005 09:58 AM
Re: stopping and restarting jobs' queue
Do not give points untill problem is resolved. That way, othere running into same problem can look here and get useful information.
Now for each of the jobs in at -l -q d post following.
at -l "job_id"
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 10:04 AM
06-09-2005 10:04 AM
Re: stopping and restarting jobs' queue
We will verify what exactly is happening. I am doubting that the time difference is so small that it might appear that they are being executed in wrong order.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 10:08 AM
06-09-2005 10:08 AM
Re: stopping and restarting jobs' queue
1118353786.d Thu Jun 9 23:49:46 2005
1118353788.d Thu Jun 9 23:49:48 2005
1118353789.d Thu Jun 9 23:49:49 2005
1118353790.d Thu Jun 9 23:49:50 2005
1118353791.d Thu Jun 9 23:49:51 2005
1118354461.d Fri Jun 10 00:01:01 2005
1118354462.d Fri Jun 10 00:01:02 2005
1118354463.d Fri Jun 10 00:01:03 2005
1118354464.d Fri Jun 10 00:01:04 2005
1118354465.d Fri Jun 10 00:01:05 2005
1118354466.d Fri Jun 10 00:01:06 2005
1118354467.d Fri Jun 10 00:01:07 2005
1118354468.d Fri Jun 10 00:01:08 2005
1118354469.d Fri Jun 10 00:01:09 2005
$ at -l 1118353786.d
1118353786.d Thu Jun 9 23:49:46 2005
$ at -l 1118353788.d
1118353788.d Thu Jun 9 23:49:48 2005
$ at -l 1118353789.d
1118353789.d Thu Jun 9 23:49:49 2005
$ at -l 1118353790.d
1118353790.d Thu Jun 9 23:49:50 2005
$ at -l 1118353791.d
1118353791.d Thu Jun 9 23:49:51 2005
$ at -l 1118354461.d
1118354461.d Fri Jun 10 00:01:01 2005
$ at -l 1118354462.d
1118354462.d Fri Jun 10 00:01:02 2005
$ at -l 1118354463.d
1118354463.d Fri Jun 10 00:01:03 2005
$ at -l 1118354464.d
1118354464.d Fri Jun 10 00:01:04 2005
$ at -l 1118354465.d
1118354465.d Fri Jun 10 00:01:05 2005
$ at -l 1118354466.d
1118354466.d Fri Jun 10 00:01:06 2005
$ at -l 1118354467.d
1118354467.d Fri Jun 10 00:01:07 2005
$ at -l 1118354468.d
1118354468.d Fri Jun 10 00:01:08 2005
$ at -l 1118354469.d
1118354469.d Fri Jun 10 00:01:09 2005
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 10:19 AM
06-09-2005 10:19 AM
Re: stopping and restarting jobs' queue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 01:47 AM
06-10-2005 01:47 AM
Re: stopping and restarting jobs' queue
If you want job2 to start after job1 ends, then you need to take care of it. Put a condition in job1 something like follows.
The end of the job1 would look like follows.
jobe1 code
xxx
xxx
status_job1=$?
if [[ status_job1 -eq 0 ]]
then
at -f "job2_script" -t now +1
fi
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 06:59 AM
06-10-2005 06:59 AM
Re: stopping and restarting jobs' queue
Now I have an idea, if at end of every job I add the execution of a script like this:
$cat personal_rescheduling
jobs_dir="/var/spool/cron/atjobs/"
ls -1 $jobs_dir | while read num_job
do
at -qd now < $jobs_dir$num_job
at -r $num_job
done
I think all will be ok, what do you think about this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 07:32 AM
06-10-2005 07:32 AM
Re: stopping and restarting jobs' queue
You not only get the correct order in which they would start, you can also put error code checking to decide to start next job or not, OR to start in different way depending upon error code.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 04:22 PM
06-10-2005 04:22 PM
Re: stopping and restarting jobs' queue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 04:35 PM
06-10-2005 04:35 PM
Re: stopping and restarting jobs' queue
At this point, I think only one little problem can have, every time I reschedule a queued job, the at command inserts at the begining of the script all of the environment variables. Is this a serious problem or I can discard it ?
Sorry for don't undrestand what you try to tell me in your last message, sorry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2005 06:35 AM
06-13-2005 06:35 AM
Re: stopping and restarting jobs' queue
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2005 07:31 PM
06-13-2005 07:31 PM