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.

FTP and TCL - I need help!

Old posts that have not been replied to for several years.
Locked
E
EL3CTRO

Post by EL3CTRO »

OK, i've been using the ChatStats script, 3.1.1 by Baerchen. I've made a lot of edits etc. But I cant get it to upload to my server. I changed the script so it would save it to a local directory and upload it, but it saves it to a local directry and DOESNT upload it :sad:.

I'm quite new to TCL so i've proably made an obvious mistake.. so could anyone point it out from this portion of code I have edited?

Code: Select all

if {$ullist != ""} {
  switch -exact $cs(ulmethod) {
   1 {foreach e $ullist {
       if {[file exists $e]} {
        file copy -force $e $cs(localfolder)
        file delete -force $e
	puts "cd /home/electro/chatstats"
	set ftpid [open "|$cs(ftpclient)" w]
	puts $ftpid "open -u $cs(username) -p $cs(password) $cs(ftpname)"
	puts $ftpid "cd $cs(ftpfolder) end]"
	puts $ftpid "put * end]"
	puts $ftpid "quit"
       } else {putlog "CHATstats: Skipped moving $e, file not found."}
      }
     }
I run the script on ulmeathod=1
B
Baerchen

Post by Baerchen »

You should RTM first.
ulmethod to 2, configure ftp correctly and there you go. Mail me with any problems, but only after you've RTM.

Baerchen


<font size=-1>[ This Message was edited by: Baerchen on 2002-02-20 02:14 ]</font>
Locked