07-10-2008
The company I work for is using UC4, a job management system. They have tons of different job plans and can manage such stuff easy with it.
Quote:
What Im having trouble with is to check the jobs after 3mins. Im having trouble in putting them into a loop where it will keep checking and also continue with starting the next set of jobs at the same time.
Else I suggest to write a simple shell script triggered every minute by cron to verify which job has run (ps -ef or as you do SELECT for some timestamps) and then run the next. Make that shell script reading a plain textfile, where you have your order of the scripts etc. in it and have the script processing it on the logic/order you want.
If you need to "remind" stati of different jobs beside the ps or SELECT on timestamps, you can easy use "lock" files by just touching them with the information you will need.
It will be a bunch of if/then/fi, while/do/done, case/esac and such to implement the logic you want.
10 More Discussions You Might Find Interesting
1. IP Networking
Hi All,
Please explain me when i have to use multiple process and when I have to use Multiple threads? Please give me an example.It will be very helpful for me.
Thanks in advance. (0 Replies)
Discussion started by: ashleykumar
0 Replies
2. Shell Programming and Scripting
Would you please tell me any link to learn about the concepts of coprocess from teh start and tell me briefly its applications, ie when, where, why to use co-process, and ive seen its applied to much in an ftp script. why its importnat in an ftp script
ill appreciata hihly your help. Thanks (2 Replies)
Discussion started by: alexcol
2 Replies
3. UNIX for Advanced & Expert Users
Hi,
I am using a daemon from which I am forking 3 processes
P1,P2,P3 out of which P3 is compiled with oracle lib32/libclntsh.so and P1,P2 are non database process.
The Logic of daemon is that if any one goes down simply clean the other and refork all the 3 again.
P3 is getting forked first time... (1 Reply)
Discussion started by: unisuraj
1 Replies
4. Shell Programming and Scripting
Hi
I created one CSV file and i need to append some message in the content of my mail.
$sales=sales.dat
$sales_csv=sales.csv
$sales_report=sales.txt
this is the command am using it.
echo "sales for `date`"| read subject
uuencode $sales $sales_csv | mailx -ms "${subject}."... (2 Replies)
Discussion started by: bobprabhu
2 Replies
5. UNIX for Dummies Questions & Answers
;)Hi Everyone,
I am using solaris 5.10.
I have a java process running in server mode in unix.
The problem is that it automatically forks i.e creates a child process.
I mean suddenly two instances of that process start running , in which the process-id of first instance is the parent... (0 Replies)
Discussion started by: glamo_2312
0 Replies
6. Shell Programming and Scripting
Can someone please explain to me how come snmpwalk doesn't always find a running process that's on a remote server?
I prefer to use snmp to monitor processes remotely because this doesn't require me to put a script on that remote box. but the problem is, there are times that my snmp command... (2 Replies)
Discussion started by: SkySmart
2 Replies
7. UNIX for Advanced & Expert Users
Hi,
I have one autosys job that will retrieve the proccess id's and will kill those processess as follows,
pid=`/usr/ucb/ps -auwwxx | grep MAIN |nawk '{print $2}'`
kill -9 pid
but after executing this particular job, its status is showing as TE(terminated) and the kill process is... (3 Replies)
Discussion started by: Kattoor
3 Replies
8. Solaris
They asked me to check is if process 'aanr' isn't working or hung!!
$ ps -ef | grep aanr
artsadm 11355 1 0 20:15:01 ? 0:00 /usr/local/bin/perl5 ./aanr
artsadm 28203 1 0 Sep 06 ? 0:49 /usr/local/bin/perl5 ./aanr
artsadm 24646 1 0 Sep 26 ? 0:00... (3 Replies)
Discussion started by: learner46
3 Replies
9. Shell Programming and Scripting
Experts,
Not sure whether the problem described here is related with Unix or is it with Oracle Installation. Here is the description of the issue:
A new Unix server is setup as a part of Unix and Oracle upgradation activity for one of the Application, I work on.
One strange thing is... (2 Replies)
Discussion started by: Oracle_User
2 Replies
10. UNIX for Beginners Questions & Answers
Im having an issue when trying to replace the first column with a new set of values in multiple files. The results from the following code only replaces the files with the last set of values in val.txt. I want to replace all the files with all the values.
for date in {1..31}
do
for val in... (1 Reply)
Discussion started by: ncwxpanther
1 Replies
LEARN ABOUT OSF1
select_wakeup
select_wakeup(9r) select_wakeup(9r)
NAME
select_wakeup - General: Wakes up a kernel thread
SYNOPSIS
void select_wakeup(
sel_queue_t *selq );
ARGUMENTS
Specifies a pointer to a sel_queue structure.
DESCRIPTION
The select_wakeup routine wakes up a kernel thread that is suspended while waiting for an event on the specified device. A user-level
process can use the select system call to cause the process to be suspended while waiting for an event to happen on a device. For example,
a graphics application may issue a select call while waiting for mouse or keyboard input to arrive. In this case the process would issue
the select system call, which would indirectly call the graphics driver's select routine (through the driver's select entry point in the
dsent table) to determine if any input is available. If input is available, the select call may return immediately. If no input is cur-
rently available, the graphics driver would suspend the process until input arrived.
For this example, when the graphics driver has received input (typically through its interrupt handler), it causes any processes suspended
from calling select to continue by calling the select_wakeup routine. This causes any process currently suspended on the select channel
(as specified by the selq argument) to resume.
RETURN VALUES
None
SEE ALSO
Routines: select_dequeue(9r), select_dequeue_all(9r), select_enqueue(9r)
System Calls: select(2)
select_wakeup(9r)