Sponsored Content
Top Forums Shell Programming and Scripting Waiting for the background process to finish Post 302464098 by jim mcnamara on Tuesday 19th of October 2010 09:29:52 AM
Old 10-19-2010
general approach to this problem is:
Code:
script1  2&>1 > log1 &  
script2  2&>1 > log2 &  
script3  2&>1 > log3 &  
wait   # this will wait until script1 script2 and script3 are finished

Is that what you mean?
 

10 More Discussions You Might Find Interesting

1. Linux

waiting process

how to know the information of the waiting process how to calculate the time of the process that it has taken to execute i want to make a program that Should be able to keep a log of the processes expired(The log should contain the starting time, expiry time, time slices used, total execution... (2 Replies)
Discussion started by: shukla_chanchal
2 Replies

2. UNIX for Advanced & Expert Users

Process(s) ID waiting on IO?

Hello Experts!! My CPU is waiting a lot (around 33%) on I/O. I would like to find out what process(s) are waiting on the i/o. Below is my real time output of vmstat and sar. Thanks for you help !!!! Regards Citrus OS: AIX - 5L : /u2/oracle >oslevel 5.3.0.0 : /u2/oracle... (9 Replies)
Discussion started by: Citrus143
9 Replies

3. AIX

Waiting time of Process

Hi all, I am trying to find out the process wait time on Unix(AIX/SOLARIS) machine( only sh/ksh/csh): Like EXAMPLE 1 : $ vmstat 2 System configuration: lcpu=16 mem=32000MB kthr memory page faults cpu ----- -----------... (4 Replies)
Discussion started by: chandrakala.sg
4 Replies

4. Shell Programming and Scripting

Waiting for a background process to finish

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)
Discussion started by: vineetbhati
2 Replies

5. Shell Programming and Scripting

Waiting for an arbitrary background process (limiting number of jobs running)

Hi, I'm trying to write a script to decompress a directory full of files. The decompression commands can run in the background, so that many can run at once. But I want to limit the number running at any one time, so that I don't overload the machine. Something like this: n=0 for i in *.gz... (15 Replies)
Discussion started by: p.f.moore
15 Replies

6. UNIX for Dummies Questions & Answers

Script to start background process and then kill process

What I need to learn is how to use a script that launches background processes, and then kills those processes as needed. The script successfully launches the script. But how do I check to see if the job exists before I kill it? I know my problem is mostly failure to understand parameter... (4 Replies)
Discussion started by: holocene
4 Replies

7. UNIX for Dummies Questions & Answers

Cygwin not waiting for program in background (solved)

Hello, I know this isn't exactly a Unix question, but I wasn't able to find much information elsewhere. I'm trying to run a program in the background using Cygwin on a Windows machine, then use the wait command to pause before proceeding. Unfortunately, as I've confirmed using ps aux, the... (0 Replies)
Discussion started by: ocdcollector
0 Replies

8. Shell Programming and Scripting

waiting on jobs in bash, allowing limited parallel jobs at one time, and then for all to finish

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. Shell Programming and Scripting

How to put FTP process as a background process/job in perl?

Hi, I am using net::ftp for transferring files now i am trying in the same Linux server as a result ftp is very fast but if the server is other location (remote) then the file transferred will be time consuming. So i want try putting FTP part as a background process. I am unaware how to do... (5 Replies)
Discussion started by: vanitham
5 Replies

10. Shell Programming and Scripting

Waiting a job to finish

Hello again, I am runnning a job on a cluster and I submit a job with the command qsub script.sh 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... (5 Replies)
Discussion started by: lengolass
5 Replies
rcov(1) 						    rcov test coverage analysis 						   rcov(1)

NAME
rcov - create a code coverage report for Ruby tests SYNOPSIS
rcov [options] <script1.rb> [script2.rb] [-- --extra-options] DESCRIPTION
rcov is a code coverage tool for Ruby. It creates code coverage reports showing the unit test coverage of the target code. rcov does "statement coverage", also referred to as "C0 coverage analysis". It tests, if each line of the source code has been executed. rcov is typically used to find the areas of a program that have not been sufficiently tested. It reports, what code has not been run by any test cases. It can easily be integrated into build processes (e.g. with rake or rant) and creates the coverage reports in HTML or text format. OPTIONS
-o, --output Destination directory. -I, --include PATHS Prepend PATHS to $: (colon separated list) --[no-]comments Mark all comments by default. (default: --no-comments) --test-unit-only Only trace code executed inside TestCases. --spec-only Only trace code executed inside RSpec specs. -n, --no-color Create colorblind-safe output. -i, --include-file PATTERNS Generate info for files matching a pattern (comma-separated regexp list) -x, --exclude PATTERN Don't generate info for files matching a pattern (comma-separated regexp list) --exclude-only PATTERNS Skip info only for files matching the given patterns. --rails Skip config/, environment/ and vendor/. --[no-]callsites Show callsites in generated XHTML report. (somewhat slower; disabled by default) --[no-]xrefs Generate fully cross-referenced report. (includes --callsites) -p, --profile Generate bogo-profiling info. -r, --range RANGE Color scale range for profiling info (dB). -a, --annotate Generate annotated source code. -T, --text-report Dump detailed plain-text report to stdout. (filename, LoC, total lines, coverage) -t, --text-summary Dump plain-text summary to stdout. --text-counts Dump execution counts in plaintext. --text-coverage Dump coverage info to stdout, using ANSI color sequences unless -n. --gcc Dump uncovered line in GCC error format. --aggregate FILE Aggregate data from previous runs in FILE. Overwrites FILE with the merged data. FILE is created if necessary. -D, --text-coverage-diff [FILE] Compare code coverage with saved state in FILE, defaults to coverage.info. Implies --comments. --save [FILE] Save coverage data to FILE, for later use with rcov -D. (default: coverage.info) --[no-]html Generate HTML output. (default: --html) --css relative/path/to/custom.css Use a custom CSS file for HTML output. Specified as a relative path. --sort CRITERION Sort files in the output by the specified field (name, loc, coverage) --sort-reverse Reverse files in the output. --threshold INT Only list files with coverage < INT %. (default: 101) --failure-threshold [INT] Fail if the coverage is below the threshold (default: 100) --charset CHARSET Charset used in Content-Type declaration of HTML reports. --only-uncovered Same as --threshold 100 --replace-progname Replace $0 when loading the .rb files. -w Turn warnings on (like ruby). --no-rcovrt Do not use the optimized C runtime. (will run 30-300 times slower) --diff-cmd PROGNAME Use PROGNAME for --text-coverage-diff. (default: diff) -h, --help Show extended help message --report-cov-bug SELECTOR Report coverage analysis bug for the method specified by SELECTOR (format: Foo::Bar#method, A::B.method) --version Show version EXAMPLES
To simply run rcov on all ruby files in the current directory and create a HTML coverage report in ./coverage: rcov *.rb To run the tests in ./tests, include ./lib, only take care of code executed from TestCases and output a summary to STDOUT: rcov --test-unit-only -t -I./lib ./tests/*.rb SEE ALSO
runit(1), rake(1), rant(1) http://github.com/relevance/rcov Full Documentation about the integration into other tools is available in /usr/share/doc/rcov/README.* AUTHOR
The manpage is provided by Micah Anderson <micah@debian.org> as part of the Debian's rcov package. Upstream author of rcov is Mauricio Fer- nandez <mfp@acm.org>. All the option descriptions have mainly be taken from the help output of rcov. rcov 0.8.1.2 2007-11-22 27 April 2008 rcov(1)
All times are GMT -4. The time now is 08:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy