Triggering a Script Recursively With Different Parameter and in Different Process


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Triggering a Script Recursively With Different Parameter and in Different Process
# 8  
Old 02-13-2007
that indicates there were no background process.

try this,

Code:
#include <stdio.h>                                                                    
int main()
{
        while(1)
        {         } return 0;
}

generate while bin from that

> ./while &
[job number]

>jobs
[job number]

Hope this is what you had asked for, if I have understood correctly Smilie
# 9  
Old 02-13-2007
Quote:
Originally Posted by matrixmadhan
that indicates there were no background process.

try this,

Code:
#include <stdio.h>                                                                    
int main()
{
        while(1)
        {         } return 0;
}

generate while bin from that

> ./while &
[job number]

>jobs
[job number]

Hope this is what you had asked for, if I have understood correctly Smilie
This is fine it show me the status of jobs

But Can u help me out with the starting requirement of triggering multiple compilations at one go
# 10  
Old 02-13-2007
You have to be very carefull about this.

Just feeding your script with source files which need to be compiled could result in an enormous amount of processes filling up your process table.

So you have to make sure the number of compilations running is limited to a specific amount.
# 11  
Old 02-14-2007
Quote:
Originally Posted by sb008
You have to be very carefull about this.

Just feeding your script with source files which need to be compiled could result in an enormous amount of processes filling up your process table.

So you have to make sure the number of compilations running is limited to a specific amount.
I can Limit the source fiels to 500 at a time thats not a problem

But i have not found the solution of how to trigger it in a different process simulteneously
# 12  
Old 02-14-2007
Quote:
Originally Posted by pbsrinivas
I can Limit the source fiels to 500 at a time thats not a problem

But i have not found the solution of how to trigger it in a different process simulteneously
For the multiple compilations,

did you try the idea suggested,

running individual compilations in background.


Any problem with that approach ? Smilie
# 13  
Old 02-14-2007
How to redirect the console output to log file

If I run the job in the background how can I can get the console output other than nohup.out.
Is it possible to redirect the output to some file while executing the script.

for example..

nohup ./some_script >> console_log &




Quote:
Originally Posted by matrixmadhan
For the multiple compilations,

did you try the idea suggested,

running individual compilations in background.


Any problem with that approach ? Smilie
# 14  
Old 02-14-2007
yes you can,

safer redirect both STDOUT and STDERR to log file

Code:
nohup <bin> >> logfile 2>&1 &

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Triggering a script using POSTFIX....

I have a mail server configured on my server (Postfix), I have a script which requires input to be provided to it. I would like to know if there is a possibility to trigger this script by sending mail to the server. This is what I am thinking: Once the mail arrives on server, the mail will... (6 Replies)
Discussion started by: davidbob
6 Replies

2. Shell Programming and Scripting

Triggering UNIX Script from a JAVA program

Hi I am trying to implement one program, where JAVA needs to trigger the backend UNIX script. Tried with options like String cmdArray = {"/bin/ksh","-c","/SCRIPT_ABSOLUTE_PATH/sampleScript.ksh /FILE_ABSOLUTE_PATH Test_File.dat TEST E SFTP"} When I trigger the script from front end with... (1 Reply)
Discussion started by: karumudi7
1 Replies

3. Shell Programming and Scripting

Call Script with Parameter (that has another parameter)

Hi. How do I achieve this sh /EDWH-DMT02/script/MISC/exec_sql.sh "@/EDWH-DMT02/script/others/CSM_CKC/Complete_List.sql ${file_name}" Complete_List.txt The /EDWH-DMT02/script/MISC/exec_sql.sh has two parameters and it's working fine with this sh /EDWH-DMT02/script/MISC/exec_sql.sh... (7 Replies)
Discussion started by: aimy
7 Replies

4. Shell Programming and Scripting

Triggering remote UNIX shell script from Remote desktop

I m trying to run a batch script in remote desktop which executes unix commands on the unix server...the problem is i wnt the output in HTML format.so in my batch script i m giving the cmd like ssh hostname path ksh HC_Report.ksh>out.html ...but it generates the HTML file in remote desktop .i... (2 Replies)
Discussion started by: navsan
2 Replies

5. Shell Programming and Scripting

Passing parameter to script, and split the parameter

i am passing input parameter 'one_two' to the script , the script output should display the result as below one_1two one_2two one_3two if then echo " Usage : <$0> <DATABASE> " exit 0 else for DB in 1 2 3 do DBname=`$DATABASE | awk -F "_" '{print $1_${DB}_$2}` done fi (5 Replies)
Discussion started by: only4satish
5 Replies

6. HP-UX

Need to identify the process/app which is triggering the error "vmunix: file: table is full"

Hi, I'm seeing the error vmunix: file: table is full in syslog.log. Although changing the value of the kernel parameter nfile would make this error go away, how would I identify which process/application in the server is triggering this error? The server is a HP-UX B.11.11. Thanks in advance! (1 Reply)
Discussion started by: enchogas
1 Replies

7. Shell Programming and Scripting

Best practice triggering a process?

Hi, Since I staterd working as Unix sysadmin (about 3 years ago) I always used to trigger a process evaluating the conditions needed to this process to be executed. Recently I've change the company where I work, and they usually create a trigger file to start a process or to stop a process while... (1 Reply)
Discussion started by: nefeli
1 Replies

8. UNIX for Dummies Questions & Answers

Script triggering Korn shell, how-to stop it?

Script_A.sh has echo "In am in script A" ksh ## K-shell is invoked. Script B.sh ## which I am writing... ./script_A.sh echo "I am in script B" return 0 When I run: $> Script_B.sh $> I am in script A $> Basically, on calling Script_A.sh from within Script_B.sh I have the issue of... (2 Replies)
Discussion started by: baivab
2 Replies

9. Shell Programming and Scripting

Triggering my Unix script....

Hi All, i dont have any idea about perl scripting... i need some suggestion so that i can put my effort to find out the solution:D let me explain....one of my tedious task which will taken care by Unix shell script which i prepared. its a kind of routine work that i am running the... (4 Replies)
Discussion started by: Shahul
4 Replies
Login or Register to Ask a Question