Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Mar 2007 16:14:22 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        sthomas@nerim.net
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Background process
Message-ID:  <45F0A6DE.4090604@FreeBSD.org>
In-Reply-To: <52267.194.69.32.50.1173359004.squirrel@webmail.nerim.net>
References:  <52267.194.69.32.50.1173359004.squirrel@webmail.nerim.net>

next in thread | previous in thread | raw e-mail | index | archive | help
sthomas@nerim.net wrote:
> Hello,
> 
> I connect to my freebsd box via ssh using putty from a WindowsXP
> workstation, I want to run a process on the freebsd box, then close my ssh
> session (closing putty) while keeping the process running.
> 
> So I run my process like this : # myprogram &, then I exit the shell.

screen is serious overkill in this scenario, although it's advocates 
tend to see it as the solution for every problem. :)

No one has offered what I think is the most sensible option, which is 
to check the documentation for your program to see if it has a command 
line option to background itself properly. I'm not familiar with 
moinmoin, but I have a hard time believing that it doesn't have this 
capability.

Failing that, if you need to preserve anything that is emitted from 
the program, nohup is probably your best bet. If it isn't going to 
spit anything out on the terminal, take a look at daemon(8), which you 
probably will want to run with the -f option.

Good luck,

Doug

-- 

     This .signature sanitized for your protection




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45F0A6DE.4090604>