|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Marty W wrote:
> Hi there. > > I'm using Solaris 9 and my default shell is ksh. > I have a script called start.sh which contains (basically) > > source config.sh > java program > > So when i execute the start.sh script, it works fine. > But, when I try to run the script through nohup like > > nohup start.sh & > > It fails as I get the error > > source: not found > > Does this have something to do with not being in the csh environment ? > Is there a way to get this to work without changing the script ? > > Thanks, > > Marty > I think you should give the absolute path of config.sh to source. It is the same if you want to run something with nohup. Because they were run in the background and therefore, do not have your pwd. -Jerry Fleming |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Fri, 18 Aug 2006 15:04:07 +0800, Jerry Fleming
<jerry@dd.comlk> will write: > > I think you should give the absolute path of config.sh to source. It is > the same if you want to run something with nohup. Because they were run > in the background and therefore, do not have your pwd. > -Jerry Fleming "source" is not a builtin command in ksh. Change the first line of the script to "#!/bin/csh" or "#!/bin/bash". -- Wedding rings are the world's smallest handcuffs. |
|
![]() |
| Outils de la discussion | |
|
|