05-13-2008
Thank you for your post. I can tell you are really experienced with this stuff. Going back and reading my initial post I realized that I did not do a good job at explaining what my goal is. At least, I don't think so. So, let me explain myself in a better fashion.
I have three .ctl files:
A.ctl
B.ctl
C.ctl
In all of these .ctl files, I have, among other things, something called "BATCH". It looks like this: BATCH = 123-133. For each of these files I am grepping the "BATCH" value. Which is where my for loop comes to play.
grep 'BATCH" /somewhere/in/a/dir/${filename}.ctl | read a1 a2 BATCH
for filename in A B C
do
(executing another script which will use the "BATCH" to load some data)
done
This script will be running via kron scheduler. So let's say that for the A.ctl, everything went smoothly, but when it came to the B.ctl we got an error. We would like to re-run B.ctl, without going into the script and deleting A.ctl from the script and letting the for loop continue with B and C.
Is there a way where I can, from the command line pass the $filename parameter to this script so it can start the for loop from where I want it to?
THANKS!
10 More Discussions You Might Find Interesting
1. Solaris
Does anyone have a list of error codes when core dumps fail?
What is error 4? I also have another box that does error-2 occasionally.
if anyone has a list of these error codes, it would be appreciated, thanks!
I have the error below:
NOTICE: core_log: ns-admin core dump failed,... (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies
2. Shell Programming and Scripting
i need to execute 5 jobs at a time in background and need to get the exit status of all the jobs i wrote small script below , i'm not sure this is right way to do it.any ideas please help.
$cat run_job.ksh
#!/usr/bin/ksh
####################################
typeset -u SCHEMA_NAME=$1
... (1 Reply)
Discussion started by: GrepMe
1 Replies
3. HP-UX
HI ALL,
I have been trying to install a particular software using remote linux server.
some thing like this:
rsh <host ID> /usr/sbin/swinstall -x autoreboot=true -s /tmp/<software> <Product name>.
The problem is whenever I try to install the product through a shell script the installation... (1 Reply)
Discussion started by: barun agarwal
1 Replies
4. Shell Programming and Scripting
How to display failled login in a file. i.e when there occurs a login failure,the login failed date and time should be printed in that file.. (0 Replies)
Discussion started by: aravind007
0 Replies
5. Solaris
Any diagnostic tool to do predictive check on all the SUN hard disks before it fails, as a preventive measure? Meaning, is there any tool that can really check for hdd which are failing/or "will fail soon" for Sun servers? (12 Replies)
Discussion started by: incredible
12 Replies
6. Solaris
upon rebooting the solaris 10 system, all the services went offilne or uninitialised. If I break the SVM mirror and reboot the system with the raw device, all services are up. Once I recreate a fresh mirror(metadevices) and reboot, it goes offline again. Needed to do svcadm clear <service> to bring... (16 Replies)
Discussion started by: incredible
16 Replies
7. Shell Programming and Scripting
Hi all,
I have a script file that has numerous linking commands (ln -s) and currently there is no checking to see if the linking is successful or not and I need to implement something that checks if any of the linking failed and report a failure.
The method I can think of is a small function... (3 Replies)
Discussion started by: zmfcat1
3 Replies
8. Shell Programming and Scripting
Hello,
I am running GNU bash, version 3.2.39(1)-release (x86_64-pc-linux-gnu). I have a specific question pertaining to waiting on jobs run in sub-shells, based on the max number of parallel processes I want to allow, and then wait... (1 Reply)
Discussion started by: srao
1 Replies
9. Solaris
Attempting to update an 11.0 server with many non-global zones installed. pkg publisher is pkg.oracle.com/solaris/support.
FMRI = pkg://solaris/entire@0.5.11,5.11-0.175.1.15.0.4.0:20131230T203500Z
When we run pkg update --accept the server contacts oracle, checks packages, finds about 700... (4 Replies)
Discussion started by: CptCarrot
4 Replies
10. Shell Programming and Scripting
I have multiple jobs and each job dependent on other job.
Each Job generates a log and If job completed successfully log file end's with JOB ENDED SUCCESSFULLY message and if it failed then it will end with JOB ENDED with FAILURE.
I need an help how to start.
Attaching the JOB dependency... (3 Replies)
Discussion started by: santoshkumarkal
3 Replies
LEARN ABOUT DEBIAN
fl-credential-ctl
FL-CREDENTIAL-CTL(1) Debian manual FL-CREDENTIAL-CTL(1)
NAME
fl-credential-ctl - XML-RPC credential server for funkload
SYNOPSIS
fl-credential-ctl [ options ] config_file [ start | startd | stop | restart | status | test ]
DESCRIPTION
fl-credential-ctl controls the XML-RPC based credential server for Funkload. This server is meant to be used in order to write benchs that
require authentication.
A configuration file needs to be setup in order to use this server. Please refer to demo/cmf/credential.conf for an example.
OPTIONS
--version
Show program's version number and exit
--help, -h
Show a help message and exit
--quiet, -q
Verbose output
SEE ALSO
fl-build-report(1), fl-install-demo(1), fl-monitor-ctl(1), fl-record(1), fl-run-bench(1), fl-run-test(1).
AUTHOR
Funkload was written by Benoit Delbosc.
This manual page was written by Jose Parrella <bureado@debian.org>, for the Debian project (but may be used by others).
Debian Project 26 March 2009 FL-CREDENTIAL-CTL(1)