LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxQuestions.org Member Success Stories (https://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/)
-   -   PB launching shell-script with telnet (https://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/pb-launching-shell-script-with-telnet-78827/)

Naurore 08-04-2003 07:02 AM

PB launching shell-script with telnet
 
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...) :scratch:
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 :cry:

Naurore



P.S.: ... more surprising... :confused:

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 (!?!) :confused:

Help please ... :cry:

acid_kewpie 08-04-2003 07:42 AM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

and of course this is obviosuly an unsuitable forum for this,


All times are GMT -5. The time now is 02:10 PM.