vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, Okay - there is likely an easy answer to this but I'm a bit lost at the moment. I have a requirement to do some testing which needs many rlogin's - I want to have these automated in a script as the testing is for me there is no security risk. How do I pass the password etc at an appropriate time for the rlogin command? I will also need to do the same with telnet.... Thanks, Jon |
| |||
| Hi, If you have 'expect' installed you pass the password thru expect. if not , consider remsh. thanks Michael Abootorab "Jon" <snakes_boi@yahoo.co.uk> wrote in message news:c6bjbb$30a$1@titan.btinternet.com... > Hi, > Okay - there is likely an easy answer to this but I'm a bit lost at the > moment. > > I have a requirement to do some testing which needs many rlogin's - I want > to have these > automated in a script as the testing is for me there is no security risk. > How do I pass the password etc at an appropriate time for the rlogin > command? > I will also need to do the same with telnet.... > > > Thanks, > Jon > > |
| |||
| On 2004-04-23, Jon <snakes_boi@yahoo.co.uk> wrote: : I have a requirement to do some testing which needs many rlogin's - I want : to have these automated in a script as the testing is for me there is no : security risk. How do I pass the password etc at an appropriate time for : the rlogin command? I will also need to do the same with telnet.... : You could use C-Kermit: http://www.columbia.edu/kermit/ckermit.html which is an Rlogin client and a Telnet client (among other things) and which includes its own built-in scripting language: http://www.columbia.edu/kermit/ckscripts.html The only trouble is that rlogin is a privileged port; you have to be root to use it, or else the rlogin application has to be setuid root, but Kermit can't be setuid root because it also reads and creates files. Another possibility is SSH -- you can do that with C-Kermit too (version 8.0 and later). Note that C-Kermit comes as standard equipment on HP-UX, but older HP-UX versions have older C-Kermit versions installed. - Frank |
| |||
| On 2004-04-23, michael <spam-mxa@yahoo.com> wrote: : If you have 'expect' installed you pass the password thru expect. : That reminds me, you can also use Kermit like expect, over the regular rlogin client: http://www.columbia.edu/kermit/ckermit70.html#x2.7.2 (C-Kermit 7.0 required). - Frank |
| |||
| Thanks for the replies - I will be investigating the use of Expect for some testing and currently getting Tcl installed. However, this still doesn't truly answer my question. Regardless of user/security etc as these are not an issue I need to test the rlogin and telnet commands - that is, I need to automate - in a script - access to a unix box using the specific commands of rlogin and again test using the specific command telnet. I therefore need a way of passing user and password to these commands in a way that one might with scripted ftp. I understand that suggested methods are valid but not for the specific testing that I need to do with these commands. I am attempting to mimic a real-life situation for some software being 'hit' by lots of 'people' either rloging or telneting into a unix box (quotes used as I am running a lab-test rather than getting customers to do it for real!) I just need a simple way of scripting rlogin an telnet as they come on the box but for some reason the way to do this seems to be lost on me..... Thanks again, Jon "Jon" <snakes_boi@yahoo.co.uk> wrote in message news:c6bjbb$30a$1@titan.btinternet.com... > Hi, > Okay - there is likely an easy answer to this but I'm a bit lost at the > moment. > > I have a requirement to do some testing which needs many rlogin's - I want > to have these > automated in a script as the testing is for me there is no security risk. > How do I pass the password etc at an appropriate time for the rlogin > command? > I will also need to do the same with telnet.... > > > Thanks, > Jon > > |
| |||
| In article <c6c06n$9fp$1@sparta.btinternet.com>, Jon wrote: > Thanks for the replies - I will be investigating the use of Expect for some > testing and currently getting Tcl installed. > > However, this still doesn't truly answer my question. Regardless of > user/security etc as these are not an issue I need > to test the rlogin and telnet commands - that is, I need to automate - in > a script - access to a unix box using the specific commands > of rlogin and again test using the specific command telnet. I therefore need > a way of passing user and password to these commands in a way > that one might with scripted ftp. > > I understand that suggested methods are valid but not for the specific > testing that I need to do with these commands. > I am attempting to mimic a real-life situation for some software being 'hit' > by lots of 'people' either rloging or telneting into > a unix box (quotes used as I am running a lab-test rather than getting > customers to do it for real!) > > I just need a simple way of scripting rlogin an telnet as they come on the > box but for some reason the way to do this seems to be lost on me..... > > Thanks again, > Jon > -snip- Jon, You need 'expect'. It will run the actual telnet or rlogin commands however you desire to script them. Telnet is not scriptable otherwise, although it is possible rlogin is. If you haven't yet learned about expect, you should do some reading before making further requests on this topic, as you have already been given the answer more than once. Kevin |
| ||||
| On 2004-04-26, Kevin Collins <spamtotrash@toomuchfiction.com> wrote: : You need 'expect'. It will run the actual telnet or rlogin commands however : you desire to script them. Telnet is not scriptable otherwise, although it is : possible rlogin is. : As noted previously, it depends on the application. Here is a Telnet client that is fully scriptable: http://www.columbia.edu/kermit/ckermit.html (and also supports all the standard Telnet security options such as SSL/TLS, Kerberos, etc). More info: http://www.columbia.edu/kermit/ckututor.html Tutorial http://www.columbia.edu/kermit/ckscripts.html Scripting tutorial + examples Note the second link, where you can find ready-made scripts. Note also that Kermit comes preinstalled on every HP-UX system, 10.00 and later, and is available for every version of HP-UX back to 5.21 and forwards to 11.23: http://www.columbia.edu/kermit/ck80binaries.html#hp : If you haven't yet learned about expect, you should do some reading before : making further requests on this topic, as you have already been given the : answer more than once. : In applications like Telnet and FTP, it is better to have scripting integrated into the application where all the actions occur, for the reasons given here: http://www.columbia.edu/kermit/ftpscripts.html (which is about FTP scripting but applies equally to Telnet or any other communications protocol). As noted previously C-Kermit also includes an rlogin client, but you must be root to use it because rlogin is a privileged port and C-Kermit can not be setuid root for reasons that are explained elsewhere. - Frank |