I am still getting used to the syntax for tcl scripting so I am hoping for a quick response for what I think is easy but I don't know how to fix.
My problem is I am using Chanstats 3.1.2 and it will not upload my file to an ftp. I belive the problem is it needs to be in passive mode. I have looked on the forum for setting passive mode but the most I can find is to set -mode passive. It dosnt say where to set this and certainly is not pretaining to ChanStats.
So could someone tell me what line to set passive mode on? I belive it is in these lines but I am not sure.
my FTP clients use passive directly before they initiate the file transfer in your case before the PORT command. since you are using an 3rd party ftp client I suggest you to refer its man page to get the argument for using passive mode.
in case you use the unix command "FTP" it will probably be the parameter -p (lowercase letter). in which case the line would look like:
[open "|$cs(ftpclient) -np $cs(ftpname) $cs(ftpport) " w]
PS: i wonder why the scripter didnt use the "ftp://[user:password@]host[:port]" format for login. using
would spare you the "puts $ftpid "user ..." line ^-^.
in case you are really using a not all to long outdated version of FTP ^^. im not familar with that command so I might have misinterpreted the man page .