[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: job control



on Thu, Mar 29, 2001 at 02:04:12AM -0500, cletus.yokel@hushmail.com (cletus.yokel@hushmail.com) wrote:
> ----- Begin Hush Signed Message from cletus.yokel@hushmail.com -----
> 
> This is not a debian question, but it's so generic I'm not sure where else 
> to ask it.
> 
> How do you free a process from your login? I want to start a commandline 
> program, then logoff and have the program continue to execute. Currently 
> I'm using  at  as a work around, but it seems like you should be able to 
> interactively "spin" the process off on its own. Thanks.

You can use your shell's own built-in job control, but my preference is
to use system schedulers for any lengthy processing.

Using shell job control allows you to access and monitor multiple tasks.
However:

  - I tend to lose track of shells, particularly under X, where I may
    have 26 windows open with sessions on three or four different
    systems.

  - Using shell job control means you'll get periodic output to your
    screen.  And may have to "rescue" jobs (run noninteractively, they'd
    simply fail).

For quick jobs, I'll generally resort to using at or batch.  A favorite
is:

    $ echo 'command -args' | batch

...which submits a command and its argument to the batch processor.  The
job runs when system load permits, and emails me a notification when
it's completed.

    $ at now
    > command -args
    >^D

...is another alternative.  I cron regular tasks.

There are also more sophisticated batch systems available, though I've
very limited experience with them.

-- 
Karsten M. Self <kmself@ix.netcom.com>    http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?       There is no K5 cabal
  http://gestalt-system.sourceforge.net/         http://www.kuro5hin.org

Attachment: pgpPDCLvhz_fw.pgp
Description: PGP signature


Reply to: