03-06-2008
Quote:
Originally Posted by
ChicagoBlues
The title sounds like an easy problem (maybe it is), however, the catch is that when a job 'A' is called inside a wrapper, the execution does not wait for 'A' to finish, but it goes on to the next line (right after kicking off 'A').
My question is, how will you keep the execution waiting for that job to complete, so that I can perform some cleanup and/or archiving of files after 'A' completes.
*Note: Something that might help.... When 'A' is kicked off, it begins writing some lines of data to a file called success.txt. When 'A' completes, it stops writing to success.txt.
Thanks,
CB
Is job A called in the background? Post the line of code that kicks off job A.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
We now have a Log file which has time stamps of all the scripts ran. It has start
time and end time. I now have a requirement to send mail to the Admin after the script finishes running.
Can some one help me with a Script which will send mail with Start time and
End time of the... (2 Replies)
Discussion started by: srikanthgr1
2 Replies
2. UNIX for Dummies Questions & Answers
Hi I have a job that has been running for a while with the following statement to cleanup a directory:
find /dbmgtu01/app/myplace/log ! \( -name "dc*" -o -name "sc*" -o -name "ms*" \) -type f -mtime +30 -print -exec rm {} \ ;
The directory was recently changed to a mount point, with a symbolic... (2 Replies)
Discussion started by: CAGIRL
2 Replies
3. UNIX for Dummies Questions & Answers
If I run "sleep 10&".. when that background process is done, is there a way for unix to print to screen to let me know? Thanks. (1 Reply)
Discussion started by: jmelai
1 Replies
4. Shell Programming and Scripting
Hello,
This is my first post. Nice forum!
I have a file trls.results
small exemple of content (actually the file can be very big):
./security/htaccess.htm ./security/ipcount.log ./adhoc/sql/datamod06.sql
So there is 3 paths to 3 different files... I want to remove every string that has a... (9 Replies)
Discussion started by: Jacob106106
9 Replies
5. Shell Programming and Scripting
how can you check if wget finishes?
i have this code to store the source of a website url into a variable:
source=$(wget --timeout=15 -qO - $site)
but this gets stuck sometimes
e.g., one site had a virus and it stopped the script
how can i check if wget finishes?
i tried to run... (5 Replies)
Discussion started by: vanessafan99
5 Replies
6. Shell Programming and Scripting
Hello,
Have been trying to develop a script that reads a string from an input file then looks up that string in a reference file to get a number, then inset that number back into the original file at a certain point (_____):
Input File:
HARRY JON _____ AA M N
PETER PIE ... (8 Replies)
Discussion started by: dendright
8 Replies
7. UNIX for Advanced & Expert Users
Friends
Greetings. I have a RedHat 5.7 64bit virtual server on VMware ESXi 4.1. This server and other Redhat Servers are running very slow. I did some stats collection on ESXi and looks like Linux is holding the disk IO. I am not sure what is causing this behavior.
On Linux I checked the CPU... (4 Replies)
Discussion started by: sdewal
4 Replies
8. Programming
Hi,
This is for Perl.
I have a while loop, and would like to process two files, the formats are given below :
access
access.<previousday>-*
How can perform a while loop on both logs, while creating the logic for access.<previousday>-* to get format like "access.20130615-124139" when... (11 Replies)
Discussion started by: susankoperna1
11 Replies
9. Shell Programming and Scripting
Hi,
I'm trying to mount machines that are 'ON' with an expect script. I would put these guys in fstab, but the virtual machine that runs script seems to freeze up/shutdown if one of the machines I'm trying to connect to is 'OFF'. Following the mount, I run a perl script that accesses the 'ON'... (1 Reply)
Discussion started by: jdilts
1 Replies
10. UNIX for Beginners Questions & Answers
Hi
I am facing a problem in my ksh.
My main script is calling 3 different child process in the background.
I am using wait to finish all and then submit another 3 child processes.
Now what i want is , whenever any one child process finishes ,i want to submit next one.so that parallel 3... (2 Replies)
Discussion started by: Sangu
2 Replies
LEARN ABOUT DEBIAN
ecaccess-job-list
ECACCESS-JOB-LIST(1p) User Contributed Perl Documentation ECACCESS-JOB-LIST(1p)
NAME
ecaccess-job-list - List all ECaccess Jobs
SYNOPSIS
ecaccess-job-list -version|-help|-manual
ecaccess-job-list [-debug] [job-id]
DESCRIPTION
List all your ECaccess Jobs. When a job-id is specified then the details for this job are displayed.
The Job statuses can have the following values:
INIT Jobs are being initialised
STDBY Jobs are waiting for an event
EXEC Jobs are running
WAIT Jobs have been queued to the scheduler (e.g. LoadLeveler)
RETR Jobs will be resubmitted
STOP Jobs have NOT completed (error)
DONE Jobs have successfully completed
ARGUMENTS
job-id (optional)
The identifier of the ECaccess Job to retrieve the details.
OPTIONS
-version
Display version number and exits.
-help Print a brief help message and exits.
-manual Prints the manual page and exits.
-debug Display the SOAP messages exchanged.
EXAMPLES
ecaccess-job-list 124356
Give the informations concerning the ECaccess Job with identifier 124356.
ecaccess-job-list
List all your ECaccess Jobs in the spool.
SEE ALSO
ecaccess-queue-list, ecaccess-job-delete, ecaccess-job-get, ecaccess-job-restart, ecaccess-job-submit and ecaccess.
perl v5.14.2 2012-04-16 ECACCESS-JOB-LIST(1p)