From: Hubert Y. <yos...@da...> - 2001-11-01 20:58:40
|
Hi there, I'm still having problems doing a 'quote guardian' command. just to hopefully clear up what I'm trying to do...here's what it looks like when you are doing a manual ftp. after you log on... 230 User <user-name> logged in. OSS API enabled. ftp> ftp> quote guardian 257 Guardian API enabled. ftp> that is all I am wishing to do. I have tried ftpConnection.sendcmd('quote guardian') ftpConnection.voidcmd('quote guardian') ftpConnection.putcmd('quote guardian') all of which returned something in the general lines of error_perm: 500 'QUOTE guardian': command not understood. now I realize that if you do actually give a command that ftp server does not understand as in 'quote bogusCommand' then it would return an error 500 saying basically what I described above. The weirdness of the whole situation is that if I do it manually, it always works. Any ideas how to solve this problem? Thanks in advance, Hubert |
From: Samuele P. <ped...@bl...> - 2001-11-01 21:32:44
|
Hi, I hope the following excerpt of a ftp session with a server that does not understand the command guardian and quote can help. ftp> quote guardian 500 'GUARDIAN': command not understood. ftp> quote quote guardian 500 'QUOTE guardian': command not understood. ftp> quote is a meta-command :) regards ----- Original Message ----- From: Hubert Yoshizaki <yos...@da...> To: <jyt...@li...> Sent: Thursday, November 01, 2001 9:54 PM Subject: [Jython-users] how to do a 'quote' command with ftplib > Hi there, > I'm still having problems doing a 'quote guardian' command. > just to hopefully clear up what I'm trying to do...here's what it looks > like when you are doing a manual ftp. > > after you log on... > 230 User <user-name> logged in. OSS API enabled. > ftp> > ftp> quote guardian > 257 Guardian API enabled. > ftp> > > that is all I am wishing to do. > > I have tried > ftpConnection.sendcmd('quote guardian') > ftpConnection.voidcmd('quote guardian') > ftpConnection.putcmd('quote guardian') > > all of which returned something in the general lines of > error_perm: 500 'QUOTE guardian': command not understood. > > now I realize that if you do actually give a command that ftp server does > not understand as in 'quote bogusCommand' then it would return an error 500 > saying basically what I described above. The weirdness of the whole > situation is that if I do it manually, it always works. > > Any ideas how to solve this problem? > > Thanks in advance, > Hubert > > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Hubert Y. <yos...@da...> - 2001-11-02 00:16:33
|
Hi there, when you did quote guardian, the reason you got an error (GUARDIAN command not understood) is because the 'guardian' part is only understood by the Guardian OS....or rather on HP/Compaq Non-stop/Tandem platforms. Meaning this won't work if you are ftp'ing to Unix land or Windows etc. But, you probably already know that. As for when you did quote quote guardian...well, guess what? You solved my problem! :D Course you might have known that when you wrote this e-mail ;) I was looking at the error you were getting, >500 'QUOTE guardian': command not understood. when you did a >ftp> quote quote guardian therefore by doing a sendcmd('quote guardian') I was actually doing a quote quote guardian... Man, I feel really dumb for not thinking of it sooner ;) When reading the documentation for sendcmd/voidcmd/putline/putcmd I never thought that it was doing the 'quote' for me already. Hehe, guess I was 'assuming' too much :) In any case, problem solved (already tried it out). Thanks for giving me the answer! :) And to everyone else (yrium, etc.) who helped out, Thanks! Hubert At 10:30 PM 11/01/2001 +0100, Samuele Pedroni wrote: >Hi, I hope the following excerpt of a ftp session >with a server that does not understand the command guardian >and quote can help. > >ftp> quote guardian >500 'GUARDIAN': command not understood. >ftp> quote quote guardian >500 'QUOTE guardian': command not understood. >ftp> > >quote is a meta-command :) > >regards > >----- Original Message ----- >From: Hubert Yoshizaki <yos...@da...> >To: <jyt...@li...> >Sent: Thursday, November 01, 2001 9:54 PM >Subject: [Jython-users] how to do a 'quote' command with ftplib > > >> Hi there, >> I'm still having problems doing a 'quote guardian' command. >> just to hopefully clear up what I'm trying to do...here's what it looks >> like when you are doing a manual ftp. >> >> after you log on... >> 230 User <user-name> logged in. OSS API enabled. >> ftp> >> ftp> quote guardian >> 257 Guardian API enabled. >> ftp> >> >> that is all I am wishing to do. >> >> I have tried >> ftpConnection.sendcmd('quote guardian') >> ftpConnection.voidcmd('quote guardian') >> ftpConnection.putcmd('quote guardian') >> >> all of which returned something in the general lines of >> error_perm: 500 'QUOTE guardian': command not understood. >> >> now I realize that if you do actually give a command that ftp server does >> not understand as in 'quote bogusCommand' then it would return an error 500 >> saying basically what I described above. The weirdness of the whole >> situation is that if I do it manually, it always works. >> >> Any ideas how to solve this problem? >> >> Thanks in advance, >> Hubert >> >> >> >> _______________________________________________ >> Jython-users mailing list >> Jyt...@li... >> https://lists.sourceforge.net/lists/listinfo/jython-users >> > > >_______________________________________________ >Jython-users mailing list >Jyt...@li... >https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Erik F. <for...@ce...> - 2001-11-08 15:29:00
|
Hubert Yoshizaki <yos...@da...> writes: > ftpConnection.sendcmd('quote guardian') > ftpConnection.voidcmd('quote guardian') > ftpConnection.putcmd('quote guardian') > saying basically what I described above. The weirdness of the whole > situation is that if I do it manually, it always works. This probably doesn't have too much to do with jython, but when I encounter problems like that I usually use tcpdump or some similar program to see what is actually sent between the client and the server. The ftp library might very well do some strange quoting or invalid linefeed or something that ruins the command. \EF -- Erik Forsberg, Cendio Systems AB. |
From: John G. <jgo...@co...> - 2001-11-08 17:18:08
|
Hmm, why are you putting the word "quote" into sendcmd? That's not part of the protocol; it's just what some clients use to let you send something verbatim to the remote... -- John Erik Forsberg <for...@ce...> writes: > Hubert Yoshizaki <yos...@da...> writes: > > > ftpConnection.sendcmd('quote guardian') > > ftpConnection.voidcmd('quote guardian') > > ftpConnection.putcmd('quote guardian') > > saying basically what I described above. The weirdness of the whole > > situation is that if I do it manually, it always works. > > This probably doesn't have too much to do with jython, but when I > encounter problems like that I usually use tcpdump or some similar > program to see what is actually sent between the client and the > server. > > The ftp library might very well do some strange quoting or invalid > linefeed or something that ruins the command. > > \EF > -- > Erik Forsberg, Cendio Systems AB. > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users -- John Goerzen <jgo...@co...> GPG: 0x8A1D9A1F www.complete.org |