Hello,
I want to launch a shell-script using a telnet session.
This shell-script launch two scripts writen in Perl.
When I'm using a telnet session, I can launch these two Perl-script, no problem they are working well.
But when I'm trying to launch the shell-script (named SAUV-Globale), this errror occurs :
bash: ./SAUV-Globale: bad interpreter: No such file or directory
This shell-script is :
#!/bin/bash
##################
./MyPerlScript1
./MyPerlScript2
(I've tried with :
sh ./MyPerlScript and with :
bash ./MyPerlScript1, no success... )
The rights on
/bin/bash are
-rwxr-xr-x
The link sh is ok
What is suprising me is that when I'm directly connected on the Linux server (same user than telnet session), no problem : the shell-script can be launched and works ! (it launch the two Perl-sripts well...)
The Linux distribution I'm working on is Suse 7.3
... I'm lost ...
A last thing : theses Perl-scripts are launching telnet sessions with the Perl module Net::Telnet, if it can helps ...
Please help
Naurore
P.S.: ... more surprising...
In the shell-script, when I replace #!/bin/bash with #/bin/bash :
the first Perl-script is not launched (: No such file or directory) but the second one is launched !
It half-works (!?!)
Help please ...
