Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General > Member Success Stories
User Name
Password Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.


Closed Thread
  Search this Thread
Old 08-04-2003, 08:02 AM   #1
LQ Newbie
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
Unhappy 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...)
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


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 ...
Old 08-04-2003, 08:42 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
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,

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
can we telnet the system using shell script suchi_s Programming 18 02-18-2005 03:43 PM
telnet windows m/c from unix shell script ann124 Programming 1 11-10-2004 02:26 PM
shell script to autologin into a telnet session eastj1974 Linux - General 1 11-17-2003 08:58 PM
PB launching shell-script with telnet Naurore Linux - Newbie 1 08-04-2003 05:45 AM
telnet login via shell script lethe Linux - General 8 05-13-2002 10:31 AM > Forums > Linux Forums > Linux - General > Member Success Stories

All times are GMT -5. The time now is 09:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration