running interactive program from shell script

2005-01-30 Thread Jay Moore
I need a shell script that initiates a telnet session to another host. I have come up with the following, but unfortunately it terminates when the script is finished. What I wanted was for the telnet session to remain "alive" and interactive until manually terminated. Is there a way to accompli

Re: running interactive program from shell script

2005-01-30 Thread Timothy Luoma
On Jan 30, 2005, at 6:33 AM, Jay Moore wrote: I need a shell script that initiates a telnet session to another host. I have come up with the following, but unfortunately it terminates when the script is finished. What I wanted was for the telnet session to remain "alive" and interactive until man

Re: running interactive program from shell script

2005-01-30 Thread Jay Moore
On Sunday 30 January 2005 05:11 pm, Timothy Luoma wrote: > > I need a shell script that initiates a telnet session to another host. > > > > I have come up with the following, but unfortunately it terminates > > when the script > > is finished. What I wanted was for the telnet session to remain > >

Re: running interactive program from shell script

2005-01-30 Thread Timothy Luoma
Yes, if you want to automatically log yourself in via telnet, then you will need expect. There's no way to do this via /bin/sh A-a-a-r-r-r-g-h-h. You are correct! Actually... I'm not... I just tried this from my machine, and to my utter surprise, it does work, at least from the commandline. By

Re: running interactive program from shell script

2005-01-31 Thread Steven Friedrich
On Sunday 30 January 2005 11:23 pm, Jay Moore wrote: > As for what I'm trying to do: > I have a requirement to administer a number of remotely located embedded > devices; these devices do not support ssh - only telnet. To avoid the > obvious security issues, I am going to co-locate a "real" compute

Re: running interactive program from shell script

2005-02-01 Thread Loren M. Lang
On Sun, Jan 30, 2005 at 05:33:51AM -0600, Jay Moore wrote: > I need a shell script that initiates a telnet session to another host. I have > come up with the following, but unfortunately it terminates when the script > is finished. What I wanted was for the telnet session to remain "alive" and >

Re: running interactive program from shell script

2005-02-03 Thread Jay Moore
On Tuesday 01 February 2005 06:22 am, Loren M. Lang wrote: > > I need a shell script that initiates a telnet session to another host. I > > have come up with the following, but unfortunately it terminates when the > > script is finished. What I wanted was for the telnet session to remain > > "aliv

Re: running interactive program from shell script

2005-02-03 Thread Steven Friedrich
On Thursday 03 February 2005 06:02 am, Jay Moore wrote: > > > #! /bin/sh > > > > > > (sleep 3; > > > echo "password"; > > > sleep 3; > > > echo "ls -la"; > > > sleep 3; > > > ) | telnet -l user 192.168.0.2 did you try: #! /bin/sh while [ 1 ] do (sleep 3; echo "password"; sl

Re: running interactive program from shell script

2005-02-03 Thread Alejandro Pulver
On Thu, 3 Feb 2005 05:02:28 -0600 Jay Moore <[EMAIL PROTECTED]> wrote: > On Tuesday 01 February 2005 06:22 am, Loren M. Lang wrote: > > > > I need a shell script that initiates a telnet session to another host. I > > > have come up with the following, but unfortunately it terminates when the > > >

Re: running interactive program from shell script

2005-02-03 Thread John
On Thu, Feb 03, 2005 at 05:07:02PM -0300, Alejandro Pulver wrote: > On Thu, 3 Feb 2005 05:02:28 -0600 > Jay Moore <[EMAIL PROTECTED]> wrote: > > On Tuesday 01 February 2005 06:22 am, Loren M. Lang wrote: > > > > > > I need a shell script that initiates a telnet session to another host. I > > > > h