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.

Idx problems

Old posts that have not been replied to for several years.
Locked
e
era5or

Idx problems

Post by era5or »

Im trying to get my eggy to do a simple task of connect to an ftp server, login with user/pass then quit
and catch if it was sucessfull or not..

I have been hunting throught the forums and tried several things, but every time i can connect but unable to send info to the ftp server..

the ftp server im using conforms to rfc so it uses.. USER | PASS as its commands eg. USER testuser ,would send username testuser to it and same for password.

here is what i have created so far, which connects but dont seem to send any other commands to the ftp :(

-- SCRIPT ---
proc ftpcheck {nick host hand chan} {
set idx [connect 192.168.0.5 21]
putdcc $idx "USER testuser"
putdcc $idx "PASS testpass"
putserv "privmsg test :ftp test end"
}
-- SCRIPT END --

please could someone tell me where i gone wrong and maybe give me an example script that connectes sends user / pass and then quits an ftp..

thanks
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Are you sure it's not working? You don't have any code to read the response from the server so I don't know how you can tell. Also, do you ever call the proc? heh
e
era5or

um. continued

Post by era5or »

1, yes i call the proc its linked to an onjoin bind..
2, i can tell because i see the information on my ftp window..

i can see it connect, but then nothing else seems to be sent to it..
can someone please help!
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Try putting a newline on the end of each line (\n).
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Re: Idx problems

Post by egghead »

era5or wrote: [snip]...maybe give me an example script that connectes sends user / pass and then quits an ftp..
Based on another connection demo (demo-connect.tcl) I made an ftp connect demo (demo-ftpconnect.tcl). It simply logs in (USER/PASS), requests the HELP and then QUITs.

http://members.fortunecity.com/eggheadtcl -> demo-ftpconnect.tcl

Since nothing answers on 192.168.0.5 port 21, I was not able to test it on your FTPd.

Note that if you want to do intricate FTP things you may consider finding tcl ftp packages on the net.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Re: Idx problems

Post by ppslim »

[quote="eggheadSince nothing answers on 192.168.0.5 port 21, I was not able to test it on your FTPd.[/quote]

That is a reserved LAN IP, and as such, will have never routed outside of your computer
Locked