* ange-ftp and passvie mode
@ 2003-03-18 2:42 Harry Putnam
2003-03-22 17:57 ` Michael Powe
0 siblings, 1 reply; 3+ messages in thread
From: Harry Putnam @ 2003-03-18 2:42 UTC (permalink / raw)
My ftp client defaults to passive mode. The -p flag sets passive
on, so I see no way to start the client with passive off. Other than
giving the PASV command once it is started.
I have one host that is different from any others I use. That host
won't work with ange-ftp. It does work with the command line ftp
client if I switch off passive mode.
So... What is the easiest way to switch off passive mode when using
ange-ftp? That is, how can I pass a command to my ftp client when
calling it with ange-ftp? None of the M-x ange-ftp-<spc> completions
look like they do that.
Currently, calling ange-ftp on this particular client just hangs and
never gets to a password prompt.
/ftp:reader@MY_HOST:/
Just hangs.
That same syntax works on all other hosts I've tried.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ange-ftp and passvie mode
2003-03-18 2:42 ange-ftp and passvie mode Harry Putnam
@ 2003-03-22 17:57 ` Michael Powe
2003-03-26 13:26 ` Kai Großjohann
0 siblings, 1 reply; 3+ messages in thread
From: Michael Powe @ 2003-03-22 17:57 UTC (permalink / raw)
>>>>> "Harry" == Harry Putnam <hgp@sbcglobal.net> writes:
Harry> My ftp client defaults to passive mode. The -p flag sets
Harry> passive on, so I see no way to start the client with
Harry> passive off. Other than giving the PASV command once it is
Harry> started.
Harry> I have one host that is different from any others I use.
Harry> That host won't work with ange-ftp. It does work with the
Harry> command line ftp client if I switch off passive mode.
Harry> So... What is the easiest way to switch off passive mode
Harry> when using ange-ftp? That is, how can I pass a command to
Harry> my ftp client when calling it with ange-ftp? None of the
Harry> M-x ange-ftp-<spc> completions look like they do that.
Harry> Currently, calling ange-ftp on this particular client just
Harry> hangs and never gets to a password prompt.
hmm, well, you could set up two versions of ftp, one passive, one
not. i seem to recall i used to have a program called 'pftp' which
was ftp with passive mode the default. i don't have that any more but
i see a reference to it in google. then you could create a function
that would call the appropriate version for your particular needs.
why is ftp defaulting to 'passive on'? that's not really best
behavior. do you have it aliased to 'ftp -p'?
(setq ange-ftp-ftp-program-name "/usr/bin/ftp")
(setq ange-ftp-ftp-program-args (cons "-p" ange-ftp-ftp-program-args))
maybe 'tramp' could help?
mp
--
Michael Powe Waterbury, CT USA
-------------------------------------------------------------------
"It stands to reason that self-righteous, inflexible, single-minded,
authoritarian true believers are politically organized. Open-minded,
flexible, complex, ambiguous, anti-authoritarian people would just as
soon be left to mind their own fucking business." - R.U. Sirius
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-03-26 13:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-18 2:42 ange-ftp and passvie mode Harry Putnam
2003-03-22 17:57 ` Michael Powe
2003-03-26 13:26 ` Kai Großjohann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).