detach a process
Roger Oberholtzer
roger.oberholtzer
Mon May 17 11:46:18 PDT 2004
If it is a C program, there is the C function call 'daemon()'. This
is for doing this in a program you compile.
Otherwise, it is difficult to detach a program from it's input/output
devices without the program's cooperation.
It looks more like you want the program to run in the background and let
you execute more commands. How about:
copy very.large.group.of.files h: &
The '&' at the end puts the program in the background. However, it does
not detach the program. Its standard input and output remain.
But maybe '&' is what you want.
On Sat, 5 Apr 2003 21:41:44 -0800
Shawn Tayler <stayler at xmtservices.net> wrote:
>
>
> Hi Guys,
>
> Is there an easy way at the command line to start a detached process,
> ie. in OS/2 you could type "detach 'any command you wanted to run'" The
> command would run and the detached session would terminate with the
> command. An example would be "detach copy very.large.group.of.files h:"
>
> I am sure that detach is not the term used under Linux, but it was a
> real handy tool. There must be such a thing...
>
> Shawn
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> Unsubscribe/Suspend/Etc ->
> http://www.linux-sxs.org/mailman/listinfo/linux-users
>
--
Roger Oberholtzer
Sunny Stockholm
More information about the Linux-users
mailing list