| View previous topic :: View next topic |
| Author |
Message |
samba Voice
Joined: 10 Aug 2008 Posts: 1
|
Posted: Sun Aug 10, 2008 10:50 am Post subject: use lftp in tcl |
|
|
I use the shell command:
| Code: |
lftp -c 'open ip -u username,password -p port -e "mget /dir/"'
|
I want to use this in .tcl is that possible?
I already try:
| Code: |
exec lftp -c 'open ip -u username,password -p port -e "mget /dir/"'
|
but that gives the msg:
Tcl error [test]: extra characters after close-quote
Anyone a idea? |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sun Aug 10, 2008 11:11 am Post subject: |
|
|
Make sure you pass the whole command set as a single argument, such as this:
| Code: | exec lftp -c {open ip -u username,password -p port -e "mget /dir/"}
#or
exec lftp -c "open ip -u username,password -p port -e \"mget /dir/\"" |
_________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
|