Re: [tcljava-user] Expect support
Brought to you by:
mdejong
From: D. J. H. <dha...@mi...> - 2007-11-08 16:05:31
|
You definitely would not be able to use the full power of expect from jacl, since that extension does some fairly low-level plumbing with Unix PTY's, forking, and process control. For telnet, you may be able to make socket connections and use a simplified version of expect -- I think I remember seeing some examples on the http://wiki.tcl.tk site. SSH would be harder because you would need to either write your own channel implementation using a pure-Java ssh implementation (like jsch) or do your own tricks with Runtime.exec and piped Input/Output streams and threads. Hope this helps, -=- D. J. Chet Vora wrote: > Sorry if this is a newbie question but I was wondering if there's > support for Expect scripts. i.e can I run an expect script using the > Jacl interpreter ? We use expect primarily for network admin tasks > like login into devices/term servers via telnet/ssh and run commands. > Any useful pointers would be appreciated. > > Thanks in advance, > Chetan Vora > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > |