Re: Starting program in background...

From: Olivier Gautherot (ogautherot_at_freesurf.fr)
Date: 08/10/04

  • Next message: DerAlSem: "man man..."
    Date: Tue, 10 Aug 2004 20:35:28 +0200
    To: sietze <freebsd@sietze.com>
    
    

    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
    _______________________________________________
    freebsd-newbies@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
    To unsubscribe, send any mail to "freebsd-newbies-unsubscribe@freebsd.org"


  • Next message: DerAlSem: "man man..."

    Relevant Pages

    • RE: Starting program in background...
      ... > port from linux, and it seems, there's no screen command under ... Correct me if I am wrong, but adding "&" to a command only means that the ... If the command produces any output it will go to the standard output stream, ...
      (freebsd-newbies)
    • Why newbies dont RTFM...
      ... Even though I've used Linux before, I've never had to do any ... BASH BUILTIN COMMANDS ... last command exited within ... unless the shell is not exeâ ...
      (comp.os.linux.misc)
    • Re: Great SWT Program
      ... None of the nasty things that you have said or implied about me are at ... treat the file as input (manually invoking the command interpreter ... script, copy the line into that within the editor, exit, and invoke ... the shell script. ...
      (comp.lang.java.programmer)
    • Re: Shell function - accessing an Access secure db (.MDW file)
      ... > Hi - Does anyone know the correct syntax for the shell function. ... You can use the Shell command. ... To execute internal DOS command (Dir, Copy, ... Private Declare Function OpenProcess _ ...
      (microsoft.public.vb.general.discussion)
    • Re: ksh silently ignores function if mistakenly not autoloaded
      ... Here's the order of execution. ... This really takes place prior to command ... Shell scripts, with all their power, have one major drawback - they ... In the Korn Shell, there are two separate syntaxes for defining ...
      (comp.unix.shell)