Starting program in background...

Olivier Gautherot ogautherot at freesurf.fr
Tue Aug 10 11:35:29 PDT 2004


sietze wrote:

> > How can i run program in background? It cannot be run as a deamon. I
> > read in manual, that i should use "screen" command. But this prog is
> > port from linux, and it seems, there's no screen command under
> > FreeBSD. Starting with "&" parametr have no effect... It's giving me
> > pid, but program continues output to console...
>
>Correct me if I am wrong, but adding "&" to a command only means that the
>shell does not wait for the command to finish before returning you to the
>prompt.
>
>If the command produces any output it will go to the standard output stream,
>usually the screen.
>Piping the output into an alternative output stream, using ">" is not a
>solution?
>  
>
 From a general point of view, there are cases where you want to
detach your process from a terminal. That's where the at command
can help. Otherwise, pipes and redirections can often do miracles :-)

Cheers
    Olivier


More information about the freebsd-newbies mailing list