I am runnning a job on a cluster and I submit a job with the command
where script.sh is a script with the command i want o use. When i enter this command the cluster gives a huber like 123456 as the JOB ID.
I want the job to run about 12 hours and when it stops a new job will be submitted to the cluster. So what i do is creating a new script which includes the following:
but it fails waiting the job to finish and instead gives two jobs to the cluster.
Is it possible to do this?
Last edited by jim mcnamara; 04-06-2013 at 08:06 PM..
i tried to build a command to replaces the word "include" with
"exclude"
in each *.h type of file in a certain directory
and to display the lines in which the switch happened.
i did a command and i dont know why its not working
find /usr -name "*.h" -exec sed 's/include/exclude/g' {} \;... (2 Replies)
Hi,
I have strange problem executing some command on solaris 5.9
ps command does not finish(hangs) and runs forever without any result.
same with cc command too.Please suggest (1 Reply)
Hello,
I am a novice shell script programmer. And facing this problem any help is appreciated.
I m writing a shell script and running few commands in it background as I have to run them simultaneously.
Sample code :
sql_prog &
sql_prog &
sql_prog &
echo "Process Completed"
Here... (2 Replies)
I am trying to add a finish script that can copy hosts, static routes and a few other files into relevant directories on a client system. These files would be mounted as nfs resource on the client as hosts.hostname, static_route.hostname etc. Script will compare the hostname of the client and copy... (0 Replies)
Hello,
I'm doing a script where I'm traveling a file, and moves down line by line, and is copied to another file, up to the line 100, then the smaller file passes to another format ... but the problem I have is that if there are 357 lines for example, file 1 2 i 3, converted correctly but the 4... (1 Reply)
Hi,
I have on shell script which internally calls more than one scripts which run in background.
These scripts cannot be modified to run in foreground.
eg. myscript.sh -> bulk_launcher.sh -> acq_launcher.sh
-> bulk_loader.sh
I want the calling shell script myscript.sh to wait till the... (7 Replies)
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)
Hi All,
Can anyone help me to finish the scripts. this scripts is
this scripts will run on crontab in every 4 minutes to get the newest router interface status.
I would like to add a function to count the router interface flapping, if more than 2 times in 20 minutes (scripts run 5 times)... (1 Reply)
I'm not sure if this is the right place to post this issue...but here goes...
I am converting a set of windows jobs from Control-M to AutoSys r11.3. The same command line is being executed in both systems. The Control-M job runs to compltion in about 1.5 hours, waiting for the entire batch... (3 Replies)
Good morning dear friends,
I want to write an UNIX script to do the following task:
We have 6 directories, called (SMS_01, SMS_02 ....... SMS_06), some files are distributed across these directories, but the distribution process is not good, I mean when I check these directories I found the... (14 Replies)