Re: /sbin/sh behaviour

From: Chris Cox (ccox_nopenotthis_at_airmail.net)
Date: 04/16/04

  • Next message: Wolfgang Maron: "Re: DSL"
    Date: Thu, 15 Apr 2004 17:54:34 -0500
    
    

    joe durusau wrote:
    > Yes, my shell is /sbin/sh. The complete sequence I used was,
    > log in to the machine from a remote location
    >
    > su to root
    > set the DISPLAY variable
    > start netscape

    nohup it, redirect IO and background it.

    nohup netscape >/dev/null 2>&1 </dev/null &

    This will disassociate netscape with the shell
    process and it will get owned by init.

    In normal Bourne shell, Sun's man page suggests there's
    no way to not have jobs ignore the hup signal when the
    shell exits. Of course, you could create a wrapper and trap
    the hup signal, I suppose, with a shell script.

    The manpage recommends using jsh or ksh instead for better
    job control.


  • Next message: Wolfgang Maron: "Re: DSL"

    Relevant Pages

    • Batch Translation
      ... I always suspected that MSDOS Batch files were the smallest of subsets of. ... Does anyone know of a web page that translates MSDOS batch file commands to [insert favorite shell here]? ... Switch to Netscape Internet Service. ...
      (freebsd-newbies)
    • rDesktop or other RDP client as Netscape plug-in
      ... I posted earlier questions asking how to run an arbitrary shell command from ... JavaScript in Netscape. ...
      (microsoft.public.windows.terminal_services)
    • Re: standardbrowser ändern
      ... FollowHyperlink nimmt genau den Standardbrowser. ... Shell "C:\Pfad\deinbrowser.exe http://www.deineseite.de"; ... Mit IE wuerde das so funktionieren, mit Netscape keine Ahnung. ...
      (microsoft.public.de.access)
    • Re: Java method Runtime.getRuntime().exec fails on HP-UNIX to start netscape.
      ... > Netscape is installed and I am able to start netscape from command ... Perhaps you have an alias in your shell for netscape. ...
      (comp.lang.java.programmer)
    • Re: How to make a batch file to start program and close the oldwindow?
      ... 'nohup' takes care of an assortment of things that need to keep working. ... The 'nohup' redirects output to a file and starts a new process group, the '&' lets the shell continue instead of waiting, and the 'exit' should close the shell window. ...
      (Fedora)