I have a sript which is going to trigger other 3 scripts in background simultaneously
for eg:
Main Script:(main.sh)
-----------
sh a.sh &
sh b.sh &
sh c.sh &
How to catch the exit status and store it in a variable for all those three scripts in main script. Is there any other way of... (4 Replies)
In my last job someone gave me the command to put in my .profile that let me know when a job I had running in the background finished. It was a word about 5 char long. I can't remember it! (4 Replies)
I have the following sample script to run a script the jobs with the same
priority(in this case field3) in parallel; wait for the jobs to finish
and run the next set of jobs in parallel.When all the lines are read
exit the script.
I have the following script which is doing evrything I want... (1 Reply)
Hi All,
I have a scenario where I am executing some child shell scripts in background (using &)through a master parent script.
Is there a way I can capture the exit status of each individual child script after the execution is completed. (2 Replies)
Hi all, i hava a specific backgroud process. I have de PID of this process. At some time, the process finish his job, is there any way to catch the exit code? I use "echo $?" normally for commands.
Thanks! (2 Replies)
Hi, I have written a script that allows me to repetitively play a music file $N times, which is specified through user input. However, if I want to exit the script before it has finished looping $N times, if I use CTRL+c, I have to CTRL+c however many times are left in order to complete the loop.... (9 Replies)
Hi, below is my master script wihch inturn runs 2 scripts in background
#master_script.sh
./subscript1.sh &
./subscript2.sh &
executed the master_script.sh from unix command prompt
$ ./master_script.sh
it is executing the subscripts and they are completing fine, however master_script.sh is... (2 Replies)
Hi
Could someone offer some help on this problem I've got with running a background process.
As part of a script that does a stop/start/status for a piece of software called SAS, the following extract is from part of the start step.
My issue is that when the script is run, the control... (0 Replies)
Hello,
I am running a bash script to do an rsync back on a computer running MacOS High Sierra. This is the script I am using,
#!/bin/bash
# main backup location, trailing slash included
backup_loc="/Volumes/Archive_Volume/00_macos_backup/"
# generic backup function
function backup {... (12 Replies)
Discussion started by: LMHmedchem
12 Replies
LEARN ABOUT DEBIAN
stapgraph
STAP(1) General Commands Manual STAP(1)NAME
stapgraph - systemtap grapher
SYNOPSIS
stapgraph [ OPTIONS ] FILENAME [ ARGUMENTS ]
stapgraph [ OPTIONS ] - [ ARGUMENTS ]
stapgraph [ OPTIONS ] -e SCRIPT [ ARGUMENTS ]
DESCRIPTION
The stapgraph program is a simple frontend to stap that produces graphs from the output of stap scripts.
This manual corresponds to version 1.7.
OPTIONS
stapgraph accepts all options accepted by stap. They are passed through to the stap process running the script or probe points.
USER INTERFACE
The script that produces results can be started from a dialog within the program, in addition to being launched using the program's command
line arguments. This dialog allows arguments to be passed to stap and to the script.
When running, a mouse left click on a graph pauses the display of data, even though it is still collected by the program. Dragging the
mouse scrolls the graph backwards and forwards in time; clicking the displayed pause button restarts the display of new data.
The scroll wheel can be used to zoom in and out on the graph.
SCRIPT OUTPUT SYNTAX
Scripts can output Comma Separated Values (CSV) which will be interpreted by stapgraph. The first value is the X coordinate of the graph,
usually a time value. stapgraph assumes that this value is constantly increasing.
A different syntax allows the script to specify many details of the graph's appearance.
%DataSet: DATA-SET-NAME SCALE COLOR GRAPHSTYLE
The data set name identifies a data set that will be emitted by the script. "SCALE" is the overall vertical scale of the graph for this
data set. "COLOR" is a red-green-blue hex color. "GRAPHSTYLE" is one of bar - a traditional bar graph dot - plotted points discreet - An
event style timeline that records that an event happened at a certain time.
%Title: TITLE
A title for the whole graph.
%XAxisTitle: TITLE
The legend for the X axis
%YAxisTitle: TITLE
The legend for the Y axis.
%YMax: MAX VALUE
The maximum value displayed on the graph.
GRAPH DATA
DATA SET TIME VALUE Each data point that is to be plotted is tagged with the data set name, followed by the time and value of the point.
SEE ALSO stap(3stap), staprun(3stap),
BUGS
Use the Bugzilla link off of the project web page or our mailing list. http://sourceware.org/systemtap/,<systemtap@sourceware.org>.
Red Hat 2013-05-14 STAP(1)