03-29-2002
jleavitt, what shell, OS version?
I think his main problem is that he wants to run this in the background. So, when the process kicks off nothing prints to the screen.
I was trying to capture the PID with ps because 2> won't work because there is nothing to capture. Although the " [1] 12345 " appears on the screen, it is after the process is kicked to the background.
It would be easy to do this except that he is trying to run it in the background.
The only thing I can see is to grep for the PID after you kick off the background process.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
My script - main.sh, execute program1.sh in background and program2.sh in foreground .
program1.sh holds the process ID of program2.
program1.sh after a while needs to move the process of program2.sh to background.
How? (0 Replies)
Discussion started by: avnerht
0 Replies
2. Shell Programming and Scripting
Hi Guys,
I am facing some weird problem with my shell script. The script shows up a menu and for every ontion internally calls a shell script which start/stop various servers. When I am using '&' while calling the internal shell script so that the server run in the background. For exiting... (1 Reply)
Discussion started by: agoyal
1 Replies
3. 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
4. Shell Programming and Scripting
Hi,
I have a main script(main.ksh) within which I have called another script(sub.ksh). The sub.ksh script is made to run in the background using '&'. The main.ksh script logs the information in a logfile main_ddmmyy and the sub.ksh script also logs the information in the log file sub_ddmmyy.... (5 Replies)
Discussion started by: chella
5 Replies
5. Shell Programming and Scripting
hey all,
i am working on sun solaris machine and i want to start a process in background using shell script (actually i wanna start tomcat server using shell script). please dont tell me that append a & at last because this is not working in the shell script. i have also used nohup and... (8 Replies)
Discussion started by: dtomar
8 Replies
6. Shell Programming and Scripting
Hey all, I need to launch a script from within 2 other scripts that can run independently of the two parent scripts... Im having a hard time doing this, if anyone knows how please let me know.
More detail.
ScriptA (bash), ScriptB (ksh), ScriptC (bash)
ScriptA, launches ScriptB
ScirptB,... (7 Replies)
Discussion started by: trey85stang
7 Replies
7. UNIX for Dummies Questions & Answers
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
8. Shell Programming and Scripting
Hi ,
I am running a backgorund process called hello.sh
./hello &
Now i need to capture the log file as it produces the output .
i am not able to use " >> " nor " tee " to capture the output file / log file .
Please let me know how can i do it ?
Regards,
Deepak Konnur (3 Replies)
Discussion started by: dskonnur
3 Replies
9. Shell Programming and Scripting
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
Hi,
I have written a menu driven shell script in which as per the choice, I run the another script on background.
For eg:
1. get info
2)process info
3)modify info
All the operations have different scripts which i schedule in background using &.
However I wish to display the error... (0 Replies)
Discussion started by: ashima jain
0 Replies
LEARN ABOUT SUSE
xrefresh
XREFRESH(1) General Commands Manual XREFRESH(1)
NAME
xrefresh - refresh all or part of an X screen
SYNOPSIS
xrefresh [-option ...]
DESCRIPTION
Xrefresh is a simple X program that causes all or part of your screen to be repainted. This is useful when system messages have messed up
your screen. Xrefresh maps a window on top of the desired area of the screen and then immediately unmaps it, causing refresh events to be
sent to all applications. By default, a window with no background is used, causing all applications to repaint ``smoothly.'' However, the
various options can be used to indicate that a solid background (of any color) or the root window background should be used instead.
ARGUMENTS
-white Use a white background. The screen just appears to flash quickly, and then repaint.
-black Use a black background (in effect, turning off all of the electron guns to the tube). This can be somewhat disorienting as
everything goes black for a moment.
-solid color
Use a solid background of the specified color. Try green.
-root Use the root window background.
-none This is the default. All of the windows simply repaint.
-geometry WxH+X+Y
Specifies the portion of the screen to be repainted; see X(7).
-display display
This argument allows you to specify the server and screen to refresh; see X(7).
X DEFAULTS
The xrefresh program uses the routine XGetDefault(3X) to read defaults, so its resource names are all capitalized.
Black, White, Solid, None, Root
Determines what sort of window background to use.
Geometry
Determines the area to refresh. Not very useful.
ENVIRONMENT
DISPLAY - To get default host and display number.
SEE ALSO
X(7)
BUGS
It should have just one default type for the background.
AUTHORS
Jim Gettys, Digital Equipment Corp., MIT Project Athena
X Version 11 xrefresh 1.0.3 XREFRESH(1)