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/