I think "Expect" is the tool you are looking for. Expect home page (http://expect.nist.gov/) mentioned this: "Expect is a tool for automating interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc ..."
Expect is developed on top of Tcl (http://www.tcl.tk/) and RRDtool has Tcl blinding. So, you can automate your telnet and rrd graphing all in Tcl. Expect is PAUL WILLIAMSON wrote: > Have you tried to script it using "expect" and shell? > > Paul > > >>>>"shrikumar sukhthankar" <[EMAIL PROTECTED]> 01/09/06 > > 7:55 PM >>> > Hi RRD-users > I have to extract data from a Switch and monitor the traffic going > through > it using rrd. > I want to access the switch from the command line or using a unix > sxript.Iam not able to access the switch directly from unix as i have > to use telnet > and enter a username and passwd .How can i pass the usernmame and > passwd > using a unix script. > > Please help me out using this > > Regards > Shrikumar Sukhthankar > > -- > Unsubscribe > mailto:[EMAIL PROTECTED] > Help mailto:[EMAIL PROTECTED] > Archive http://lists.ee.ethz.ch/rrd-users > WebAdmin http://lists.ee.ethz.ch/lsg2.cgi > > > > -- > Unsubscribe mailto:[EMAIL PROTECTED] > Help mailto:[EMAIL PROTECTED] > Archive http://lists.ee.ethz.ch/rrd-users > WebAdmin http://lists.ee.ethz.ch/lsg2.cgi > -- # # rename proc // // t: n {regexp {^6\d{7,7}$} $n}; // f: n [info body t:] // m: n {regexp {^9\d{7,7}$} $n}; // e: e {regexp [EMAIL PROTECTED]@[EMAIL PROTECTED] $e} // a: args {string length $args}; // c: args [info body a:]; if { [c: managed computing competency centre] && [a: ntu, mae, blk n3 #01c-10, 50 nanyang ave, s(639798)] && [t: 67904420] && [f: 63160042] && [m: 97317462] && [e: [EMAIL PROTECTED] } {format {%c%c%c %c%c %c} 84 99 108 105 115 37239} -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
