LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org 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.

Notices

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

Rep: Reputation: 0
Unhappy 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...)
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 ...
 
Old 08-04-2003, 07:42 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

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


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 Off
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 02:43 PM
telnet windows m/c from unix shell script ann124 Programming 1 11-10-2004 01:26 PM
shell script to autologin into a telnet session eastj1974 Linux - General 1 11-17-2003 07:58 PM
PB launching shell-script with telnet Naurore Linux - Newbie 1 08-04-2003 04:45 AM
telnet login via shell script lethe Linux - General 8 05-13-2002 09:31 AM


All times are GMT -5. The time now is 07:39 AM.

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