bug in nohup?

M. Lynn Anderson lynnand at wombat.austin.ibm.com
Thu Jun 6 05:27:47 AEST 1991


> My login shell is /bin/ksh. If I run 'haha' directly, everything is normal.
> But I have problem run haha with 'nohup' command. The nohup.out gives right
> answer for $SHELL, and $HOME but it says:
> 
> ~: No such file or directory
> 
> then went ahead listed the files in /tmp. 
> 
> What is the problem?
> 
> By the way, the script works fine if I put a #!/bin/ksh at the very
beginning.
> 
> ---
>   Guangliang He
>   ghe at physics.orst.edu

The default shell script execution is /bin/sh.
This is a link to /bin/bsh becuase there are so many scripts 
out there that assume /bin/sh is the bourne shell.
The best answer is to include #!/bin/ksh in your script.

M. Lynn Anderson 

lynnand at wombat.austin.ibm.com 

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~  The level of decline in a society can be extrapolated as  ~ 
  ~  a direct inverse of the instance of common courtesy.      ~
  ~  ie. any engine will break down if it isn't lubricated.    ~
  ~                                                            ~
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DISCLAIMER: This posting is independent of official IBM position.



More information about the Comp.unix.aix mailing list