Eliminating PID # from background jobs

Bill McGarry wtm at bunker.UUCP
Sat Feb 22 01:48:06 AEST 1986


In article <1848> Marc Ries (ries at trwba) wants to run a background
job from his .profile.  He does NOT want the PID to be printed but
still wants the standard output of the background job to go to the
terminal.

Well, there may be other ways to do this but one way would be to
have a separate shell script call the background job.  For example,
call this shell script "run_back".  This script would just contain:

	myprog&

Then in your .profile, just run "run_back" (NOTE: Do NOT run this in
background).

Results?:  "run_back" returns immediately.  No PID # is printed, yet
"myprog" output will go to the terminal.

				Bill McGarry
				{decvax, ittatc, philabs}!bunker!wtm



More information about the Comp.unix.wizards mailing list