egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

use lftp in tcl

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
samba
Voice


Joined: 10 Aug 2008
Posts: 1

PostPosted: Sun Aug 10, 2008 10:50 am    Post subject: use lftp in tcl Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sun Aug 10, 2008 11:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber