This was close. I removed the exit and it sill exited. I'd like to take over manually once I get in.

By the way, this example answered a question I've had for a while. I saw automated telnet sessions posting and retrieving cash register transactions with a UniData server running Datatel's school administration software and wondered how it was done. Wrap CAPTURE around this and I have the answer.

Tom Firl wrote:

For a variety of reasons (security being a big one), many people think that automating 
a telnet client isn't a good idea... Karl may be fishing for more information so as to 
suggest an alternative solution.

At any rate, the following has worked all right for simple tasks on an AIX system 
running Universe:

SH -c '(sleep 1; echo username; sleep 1; echo password; sleep 5; echo "ls -l"; sleep 3; echo 
"exit") | telnet hostname'

Tom Firl
Columbia Ultimate



-----Original Message-----
From: Stu Glancy [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 28, 2004 2:39 PM
To: [EMAIL PROTECTED]
Subject: Re: [U2][UV]telnet


What the script does is not so important just yet. How do you pass the login id and password?


[EMAIL PROTECTED] wrote:



I'm not sure you've given enough information. What would the

script do?


What's it for?

I've created scripts that use ssh rather than telnet for automated
processes but never telnet.

Karl

<quote who="Stu Glancy">




I want to create a telnet script from a program and execute

it. Can it


be done? If it can, what would the EXECUTE look like?

What would the


script look like? I'm looking for concept and a little detail.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to