  | |  | simple shell script not executing | simple shell script not executing 2003-04-23 - By Scott Queen
Back >Message: 12 >Date: Tue, 22 Apr 2003 09:02:09 +0200 (CEST) >From: Antonio Galea <ant9000@(protected)> >To: enigma-list@(protected) >Subject: Re: confounded by a simple shell script >Reply-To: enigma-list@(protected)
>Here's the wrong line:
>> ./home/dokimos_web/.bash_profile
>This does not read the file, but executes it (and complains >about a bad interpreter); change it into
>. /home/dokimos_web/.bash_profile
>and it will likely go smoother :-)
>Btw, have a look at bash -x switch... it's gonna save you >a few headaches.
>Cheers,
>Ant9000
Sadly, that didn't help :( here is the script now: -- ---- ---- ---- ---- ---- ------ dokimos_web:logs>head computeStats.sh #!/bin/bash
# set environment variables . /home/dokimos_web/.bash_profile echo $TC exit 0 -- ---- ---- ---- ---- ----- here is the result: dokimos_web:logs>./computeStats.sh bash: ./computeStats.sh: bad interpreter: No such file or directory
Any other ideas? Scott
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com
Earn $52 per hosting referral at Lunarpages.
|
|
 |