![]() |
|
|
|||||||
![]() |
General Help Related Topics - How to spawn a session in new window using expectk |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
HI,
im using expectk to ssh a session, but it spawns it on the terminal on which script is run. i want to spawn a session in new window every time i do a ssh. Any idea ould be helpful. my code: #!/usr/bin/expectk proc getfiles {host} { log_user 0 set id [spawn ssh $host] expect "Password: " exp_send "abcd\n" expect "# " interact } set hostname "computer name" entry .host -textvariable hostname button .do -text go -command { getfiles $hostname } pack .host .do Chets |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [newbie] Session state can only be used when enableSessionState is set to true | jon80 | Software | 0 | 03-08-2009 05:40 PM |
| Transfering ASP Session to ASPX Session | kalim | Software | 0 | 07-12-2007 03:38 AM |
| new window minimizes to taskbar | -D- | A+ Certification | 0 | 03-03-2007 01:07 AM |
| claim your Live Internet training session today | Arnoud | A+ Certification | 0 | 05-28-2004 09:38 AM |
| claim your Live Internet training session today. | Arnoud | A+ Certification | 0 | 05-28-2004 09:29 AM |