Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to run a script in background

Status
Not open for further replies.

unable24

Technical User
Nov 15, 2001
13
US
All,

How do I make my unix script do it's thing w/out sending output to my screen?

I just want to check the results in my file when I think it should be finished.
 
ls > /dev/null 2>&1
this throws away output from the command

ls > /tmp/tmpfile.ls.$$ &
this would run a process in the backround
and return the prompt back to you immediately.
The results will be written to the tmp file.

Robert

Robert G. Jordan

Robert@JORDAN2000.com
Unix Sys Admin
Chicago, Illinois U.S.A.
[lightsaber]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top