11-08-2011
command to see process running at background
Hi ,
I want to see all the background process that are running in unix box machine...please guide me is there any specific command for that..since I am executing some scripts at background..!!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to install a solaris 9 patch cluster and when I try to use & to run in background it won't allow me to enter in my sudo password so it fails the install and sudo auth. Does Solaris not have screen like linux? If & will work what am I doing wrong?
sudo ./install_cluster -q &
is... (3 Replies)
Discussion started by: kingdbag
3 Replies
2. Solaris
I ran the Oracle 9i export command from a terminal to export out a big table using "exp andrew/password file=andrew.dmp log=andrew.log"
From the terminal I can see that the export is running as there is some output from the oracle export job. The export job is not complete yet. When i go check... (4 Replies)
Discussion started by: hippo2020
4 Replies
3. Shell Programming and Scripting
I have run one shell script in background that contains a endless while loop.
I am not able to know the status of that job .
Please provide any command to know this. I have already used "ps -aef" , "jobs" to know it , but it didn't work. I am sure the process is running as it is generating a file... (8 Replies)
Discussion started by: sumanta
8 Replies
4. UNIX for Advanced & Expert Users
I've tried this a long time ago and was successful but could not remember how i did it. Tried ctrl+Z and then used bg %
could not figure what i did after to keep it no hangup -
not sure if used nohup -p pid, can u plz help me out if this can be done.
Any help will be appreciated. (12 Replies)
Discussion started by: pharos467
12 Replies
5. Shell Programming and Scripting
Hi All,
I have a script which calls a child script with a parameter to be run in the background
. childscript.ksh $a &
Can any one suggest me how do i export a variable from the child script to parent script?
Note that the child script is in background
If the child script is in... (3 Replies)
Discussion started by: aixjadoo
3 Replies
6. UNIX for Advanced & Expert Users
Hi guys, I have a issue with a background process, I need to update the value of a variable in that process which is running at this time and it will be running for at least 2 days.
Any idea?
I will apreciate your help. regards.
Razziel. (2 Replies)
Discussion started by: razziel
2 Replies
7. Shell Programming and Scripting
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
8. Shell Programming and Scripting
Hi, i was looking for an answer for some trouble im having runing a script in the cron, thing is, that when i run it manually it works just fine. But when cron runs it, it just doenst work. I saw a reply on a similar subject, suggesting that the . .profile worked for you, but im kind of... (9 Replies)
Discussion started by: blacksteel1988
9 Replies
9. Shell Programming and Scripting
Hi Team,
i am executing 3 scripts in background from 1 script and i want to send a message once the script gets completed.these scripts usually takes 1 hr to complete.
My sample script is below,
Vi abc.sh
sh /opt/data/Split_1.sh &
sh /opt/data/Split_2.sh &
sh /opt/data/Split_3.sh &
... (3 Replies)
Discussion started by: raju2016
3 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I have this simple c program that creates duplicate process with fork():
#include <sys/types.h>
main()
{
if (fork() == 0)
while(1);
else
while(1);
}
I tried running it in the background
gcc -o test first.c
test &
And I got this list of running process: (4 Replies)
Discussion started by: uniran
4 Replies
LEARN ABOUT CENTOS
tcl_backgrounderror
Tcl_BackgroundError(3) Tcl Library Procedures Tcl_BackgroundError(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tcl_BackgroundError - report Tcl error that occurred in background processing
SYNOPSIS
#include <tcl.h>
Tcl_BackgroundError(interp)
ARGUMENTS
Tcl_Interp *interp (in) Interpreter in which the error occurred.
_________________________________________________________________
DESCRIPTION
This procedure is typically invoked when a Tcl error occurs during "background processing" such as executing an event handler. When such
an error occurs, the error condition is reported to Tcl or to a widget or some other C code, and there is not usually any obvious way for
that code to report the error to the user. In these cases the code calls Tcl_BackgroundError with an interp argument identifying the
interpreter in which the error occurred. At the time Tcl_BackgroundError is invoked, the interpreter's result is expected to contain an
error message. Tcl_BackgroundError will invoke the command registered in that interpreter to handle background errors by the interp bger-
ror command. The registered handler command is meant to report the error in an application-specific fashion. The handler command receives
two arguments, the result of the interp, and the return options of the interp at the time the error occurred. If the application registers
no handler command, the default handler command will attempt to call bgerror to report the error. If an error condition arises while
invoking the handler command, then Tcl_BackgroundError reports the error itself by printing a message on the standard error file.
Tcl_BackgroundError does not invoke the handler command immediately because this could potentially interfere with scripts that are in
process at the time the error occurred. Instead, it invokes the handler command later as an idle callback.
It is possible for many background errors to accumulate before the handler command is invoked. When this happens, each of the errors is
processed in order. However, if the handle command returns a break exception, then all remaining error reports for the interpreter are
skipped.
KEYWORDS
background, bgerror, error, interp
Tcl 7.5 Tcl_BackgroundError(3)