Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!cs.utexas.edu!romp!auschs!awdprime!wombat.austin.ibm.com!lynnand From: lynnand@wombat.austin.ibm.com (M. Lynn Anderson) Newsgroups: comp.unix.aix Subject: Re: bug in nohup? Keywords: nohup, ksh, sh, ~ Message-ID: <8219@awdprime.UUCP> Date: 5 Jun 91 19:27:47 GMT References: <1991Jun04.172858.4736@lynx.CS.ORST.EDU> Sender: news@awdprime.UUCP Reply-To: lynnand@wombat.austin.ibm.com Organization: Advanced Workstation Division - IBM Corporation. Lines: 34 > 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@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@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.