- Member Success Stories (
-   -   PB launching shell-script with telnet (

Naurore 08-04-2003 07:02 AM

PB launching shell-script with telnet

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 :

(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:


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.

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

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