[comp.unix.questions] Is there a way of putting processing jobs in the background?

bgt@homxc.ATT.COM (B.TONGUE) (04/13/89)

Folks,

I've written a screen-oriented program which takes 5 or so minutes
to process.  Is there a way to put the process in the background
*after* the selection has been made?  (I'm not talking about ampersands; 
isn't there a command bg or fg?)

Thanks!


-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%   The Speaking Tongue, AT&T   %%  C Code.  C Code Run.  Run, Code, RUN! %%
%%   (..att!..)homxc!bgt         %%           PLEASE!!!!                   %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

envbvs@epb2.lbl.gov (Brian V. Smith) (04/14/89)

In article <6323@homxc.ATT.COM>, bgt@homxc.ATT.COM (B.TONGUE) writes:
> 
> I've written a screen-oriented program which takes 5 or so minutes
> to process.  Is there a way to put the process in the background
> *after* the selection has been made?  (I'm not talking about ampersands; 
> isn't there a command bg or fg?)
> 
> Thanks!
>

If you are using the C-shell, just type ^Z (control-Z), or whatever your  "suspend" character is set to, and type "bg" to put it in the background.  To regain control (foreground), type "fg" if that is the only job you have in the background, or get a list of the jobs with the "jobs" command and type "fg %x" where x is the number of the job (not the PID). 

_____________________________________
Brian V. Smith    (bvsmith@lbl.gov)
Lawrence Berkeley Laboratory

We don't need no stinking signatures!

palowoda@megatest.UUCP (Bob Palowoda) (04/14/89)

From article <6323@homxc.ATT.COM>, by bgt@homxc.ATT.COM (B.TONGUE):
> 
> Folks,
> 
> I've written a screen-oriented program which takes 5 or so minutes
> to process.  Is there a way to put the process in the background
> *after* the selection has been made?  (I'm not talking about ampersands; 
> isn't there a command bg or fg?)
> 
    If your running BSD its:
    ^Z
    bg

    If your running sysV you could upgrade. 

    ---Bob

-- 
 Bob Palowoda                               
 Work: {sun,decwrl,pyramid}!megatest!palowoda                           
 Home: {sun}ys2!fiver!palowoda                
 BBS:  (415)796-3686 2400/1200   Voice:(415)745-7749                  

guy@auspex.auspex.com (Guy Harris) (04/18/89)

>If you are using the C-shell,

*AND* using a version of UNIX that supports job control, which not all
versions of UNIX do.