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 thescript do?
it. Can itWhat'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
What would thebe done? If it can, what would the EXECUTE look like?
-------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/