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.
Help for those learning Tcl or writing their own scripts.
Spyyy
Voice
Posts: 2 Joined: Wed Mar 05, 2008 7:14 pm
Post
by Spyyy » Wed Mar 05, 2008 7:15 pm
hi.
I was wondering if its possible to connect to ftp through eggdrop after command from channel and send there command or make dir?
DragnLord
Owner
Posts: 711 Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA
Post
by DragnLord » Wed Mar 05, 2008 10:24 pm
Spyyy wrote: hi.
I was wondering if its possible to connect to ftp through eggdrop after command from channel and send there command or make dir?
Indeed it is with sockets and using "PUT".
user
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Thu Mar 06, 2008 4:20 am
...or, if you don't feel like reinventing the wheel, use the
ftp package .
Have you ever read "The Manual"?
Spyyy
Voice
Posts: 2 Joined: Wed Mar 05, 2008 7:14 pm
Post
by Spyyy » Thu Mar 06, 2008 10:42 am
ok, thanks for helping
1 more question, is it possible that it will transfer files through ftps after command from channel and it will show that its complete
?
btw. how to install that ftp package
tueb
Halfop
Posts: 76 Joined: Thu Oct 04, 2007 6:09 am
Location: #quiz.de @ irc.gamesurge.net
Contact:
Post
by tueb » Thu Mar 06, 2008 3:06 pm
the following will send the file "backupfile" to the "/whereto/"-folder on "moxquiz.mo-funpic.de"
Code: Select all
set file "backupfile"
exec /usr/bin/ncftpput -V -a -m -f ~/ftpserver.ftp /whereto/ ~/$file
the "ftpserver.ftp"-file has to look like this:
Code: Select all
host moxquiz.mo.funpic.de
user moxquiz
pass supersecretpw
with this, there is no extra installation necessary.
unfortunately, my bot crashed every time, "moxquiz.mo-funpic.de" wasn't reachable.
DragnLord
Owner
Posts: 711 Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA
Post
by DragnLord » Thu Mar 06, 2008 3:20 pm
tueb wrote: the following will send the file "backupfile" to the "/whereto/"-folder on "moxquiz.mo-funpic.de"
Code: Select all
set file "backupfile"
exec /usr/bin/ncftpput -V -a -m -f ~/ftpserver.ftp /whereto/ ~/$file
the "ftpserver.ftp"-file has to look like this:
Code: Select all
host moxquiz.mo.funpic.de
user moxquiz
pass supersecretpw
with this, there is no extra installation necessary.
unfortunately, my bot crashed every time, "moxquiz.mo-funpic.de" wasn't reachable.
this will only work if ncftpput is installed and at that location, poor coding to rely on shell commands that can can change location depending on operating system (or may not be installed at all)
using either TCL's socket or 'package ftp' methods are orders of magnitude better for TCL scripts