Checking if command ran in parallel

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Checking if command ran in parallel
# 1  
Old 05-07-2014
Checking if command ran in parallel


I am running below code
For I in $var
.......some line of code.......
nohup Sqlplus apps/apps <<EOF &

Nohup and & is used for parallel processing.
Can someone help in determining if the procedure with different arguments
Was called paralley or not.
# 2  
Old 05-07-2014
You might want to put a ps -lp$! after the end of the here document.
# 3  
Old 05-07-2014
Could u pls show the syntax..
How can I check if it ran in parallel or not
# 4  
Old 05-07-2014
Use the syntax indicated.
What do you mean by "ran in parallel"? All your processes will be put to background with the same priority/nice value. So CPU time available will be scheduled evenly between them. Still, depending on other resources, or e.g. DB locks, some may execute faster than others. If they run very quickly, one may be finished before the next will be started.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Python GNU parallel single command on multiple cores

Hello, I have a 4 core machine. Here is my initial script cd /work/ python input.txt output.txt 1 2 3 This script runs for 1.5hrs. So I read across the web and figured out that you can use GNU parallel to submit multiple jobs using parallel. But I am not sure if I can run... (4 Replies)
Discussion started by: jacobs.smith
4 Replies

2. Shell Programming and Scripting

Parallel processing and error checking

Hi, I need to run multiple scripts in parallel. The scripts needs to ensure that x scripts are always running. I trigger 6 jobs in parallel, as soon as one finishes it triggers the next one, but id something fails it should stop processing any further jobs. I was able to get hold of a script which... (7 Replies)
Discussion started by: wahi80
7 Replies

3. UNIX for Advanced & Expert Users

Parallel Execution of Command

Hi All, We have a table that has to store around 80-100 million records. The table is partitioned by a column called Market Code. There are 30 partitions each corresponding to one MRKT_CD. The source of this table is a join between 3-4 other tables. We are loading this table through SQLPLUS... (2 Replies)
Discussion started by: jerome_rajan
2 Replies

4. Shell Programming and Scripting

Parallel execution of command inside file

Hi all, I have the requirement to generate the file containing following command eval /path/ dsjob -logdetail projectname JOBNAME /path/ 1. The file contains the above command say about 150 times i,e only the JOBNAME changes in every command 2. The commands must be written in such a way... (2 Replies)
Discussion started by: sanjay mn
2 Replies

5. Solaris

Parallel Find command

Hi All, I ran parallel 80 Commands as below, #################################3 PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP 23677 root 1040K 856K sleep 58 0 0:04.04 0.7% find/1 23700 root 1040K 856K sleep 58 0 0:03.59 0.6% find/1 ... (4 Replies)
Discussion started by: ajaincv
4 Replies

6. Shell Programming and Scripting

What is the parallel execution command available in Ubuntu Linux?

Hi, I am using Ubuntu 10.04 LTS 32-bit. I would like to execute a command in two or more servers (multiple remote hosts) in parallel. The commands "shmux" or "on" are not available in Ubuntu. Could anyone tell me what other equivalent commands available in Ubuntu to accomplish this task? (1 Reply)
Discussion started by: royalibrahim
1 Replies

7. UNIX for Advanced & Expert Users

grep -v *[^:] Why did this repeat a command i ran earlier today?

I ran grep -v * trying to reverse grep a word before a colon, and discovered it runs a command I had run earlier today. Why? (3 Replies)
Discussion started by: glev2005
3 Replies

8. Shell Programming and Scripting

which user ran which command

can we come to know all the command ran bya user for last 1 day (1 Reply)
Discussion started by: narang.mohit
1 Replies

9. UNIX for Advanced & Expert Users

implementation of copy command in parallel

hey i have to implement copy command in parallel in c language. i dont know how to create a new directory in destination. if anything u know related to this help me (1 Reply)
Discussion started by: rajsekhar28
1 Replies

10. Shell Programming and Scripting

Run a command in parallel

Hi all, How do i run a command in parallel 50 times and capturing the result of each run in a separate file Eg: myApp arg1 > run1.txt myApp arg1 > run2.txt ::::::::::::::::::::::::: ::::::::::::::::::::::::: myApp arg1 > run50.txt The above way is sequential. ... (3 Replies)
Discussion started by: jakSun8
3 Replies
Login or Register to Ask a Question

Featured Tech Videos