This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

exec cmd

Old posts that have not been replied to for several years.
Locked
d
davef139

exec cmd

Post by davef139 »

Im trying to open lftp.exe and do a basic connection command heres what i got.

Code: Select all

set ftp "c:windrop/scripts/lftp/lftp.exe"
....
set test "exec $ftprg"
puts $test "open $ftpdest"
...
/[code]

i get the return: [01:40] TCL error [ftp-test]: can not find channel named "exec C:/windrop/scripts/lftp/lftp.exe"

Anyone got any ideas or suggestions?
P
Photon
Op
Posts: 170
Joined: Wed Aug 28, 2002 8:00 am
Location: Liverpool, England

Post by Photon »

http://www.egghelp.org/tclhtml/1256-0-1-qstat.htm

check out this script for the correct way to do exec... beware - if the program you call does not return for any reason, the bot will time out in infinate loop.
Locked