simple shell script not executing

Scott Queen <[email protected]>
Newsgroups gmane.linux.redhat.release.enigma
Message-ID <[email protected]>
>Message: 12
>Date: Tue, 22 Apr 2003 09:02:09 +0200 (CEST)
>From: Antonio Galea <[email protected]>
>To: [email protected]
>Subject: Re: confounded by a simple shell script
>Reply-To: [email 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.