Re: Starting program in background...

From: Kevin D. Kinsey, DaleCo, S.P. (kdk_at_daleco.biz)
Date: 08/10/04

  • Next message: sietze: "RE: Starting program in background..."
    Date: Tue, 10 Aug 2004 08:36:50 -0500
    To: DerAlSem <deralsem@inbox.ru>
    
    

    DerAlSem 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...
    >
    >
    >
     Hello,

    Technical questions should be posted to the questions@freebsd.org
    list (which I am cc'ing).

    I assume that you are being told to use the "screen" port
    /usr/ports/misc/screen, which is a GNU program. I don't
    know much about that. You could also use script(1), which
    was designed for this sort of thing.

    And yes, you could use "&" and console redirection...

    % somecommand > /home/me/logfile &

    This works under either the Bourne or C shells and would
    send "somecommand" into the background under shell
    job control and send all stdout to the logfile. Error messages,
    however, would still be written to console.

    If you use Bourne shell, you can redirect both stdout
    and stderr by doing it this way:

    $ somecommand> /home/me/logfile 2>&1

    But csh/tcsh doesn't like that, so script(1) is the better
    option.

    HTH,

    Kevin Kinsey
    _______________________________________________
    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: sietze: "RE: Starting program in background..."

    Relevant Pages

    • Re: cmdEX.exe - augmenting the existing CMD.EXE
      ... > It is different from replacement shells, like Take Command or WinOne, ... Replacing the very limited editing features of the existing console ... Not wanting to engineer another shell ... > console app that uses the ReadConsole kernel32 API has this ...
      (microsoft.public.win2000.cmdprompt.admin)
    • Re: GSP lan access
      ... a lan port, ... console, or a W/M cable to break out the 3 ports into 9-pin RS422 ... Disabling the modem port prevents remote diagnostic dial-in. ... lan access to the console port - again not a big deal if it is not ...
      (comp.sys.hp.hpux)
    • Re: OPA0 Console connection
      ... :disables login from that port, so that is not the right approach. ... and which will receive the connection. ... So how to leave a console cable attached without crashing the system is ... Hoff Hoffman OpenVMS Engineering hoffhp.com ...
      (comp.os.vms)
    • Re: Console - Serial Port - tty
      ... And not in multi user mode. ... Console - Serial Port - tty ... Have you placed a breakout box on the console port to make sure you are ... But still can't get login prompt after all services started. ...
      (AIX-L)
    • Re: [Slightly off-topic] Using a MacBook pro as a console for an Alphaserver 800
      ... I've recently acquired an old Alphaserver 800 that I intend to run VMS ... If you want to use it as the console, ... I believe that the port marked 1 and two arrows on the AS 800 ...
      (comp.os.vms)