Go Back   Velocity Reviews > General Computer Discussion > General Help Related Topics
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

General Help Related Topics - How to spawn a session in new window using expectk

 
Thread Tools Search this Thread
Old 10-16-2007, 09:34 AM   #1
Default How to spawn a session in new window using expectk


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
Chets is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46