* Trouble getting ange-ftp to work
@ 2008-05-24 5:17 Davin Pearson
2008-05-24 6:31 ` Michael Albinus
` (2 more replies)
0 siblings, 3 replies; 15+ messages in thread
From: Davin Pearson @ 2008-05-24 5:17 UTC (permalink / raw)
To: help-gnu-emacs
I tried the following settings but neither worked (note that the
second one refers to
ftp://ftp.gnu.org/old-gnu/emacs/windows/contrib/ftp-for-win32.zip
(setq ange-ftp-ftp-program-name "c:/WINDOWS/system32/ftp.exe")
(setq ange-ftp-ftp-program-name "d:/home/ftp.exe")
When I try to load the following program into Emacs
/davin@ftphost.ripway.com:index.php
it opens with an empty file yet the file index.php is known by me to
be not empty. Click in the following link to verify that the file is
not empty:
http://h1.ripway.com/davin/index.php
What am I doing wrong here? I have been using Emacs for 10 years now
and I have written over 17,000 lines of Elisp code, including one file
(trashcan.el) that I have submitted to the official Emacs Lisp List at
Cambridge University.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Trouble getting ange-ftp to work
2008-05-24 5:17 Trouble getting ange-ftp to work Davin Pearson
@ 2008-05-24 6:31 ` Michael Albinus
2008-05-24 8:06 ` daniel
[not found] ` <mailman.12173.1211643425.18990.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 15+ messages in thread
From: Michael Albinus @ 2008-05-24 6:31 UTC (permalink / raw)
To: Davin Pearson; +Cc: help-gnu-emacs
Davin Pearson <davin.pearson@gmail.com> writes:
> I tried the following settings but neither worked
Which Emacs version are you using? Note, that with Emacs 22 there is the
Tramp package, which needs some settings for keeping ange-ftp as default.
Best regards, Michael.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Trouble getting ange-ftp to work
2008-05-24 5:17 Trouble getting ange-ftp to work Davin Pearson
2008-05-24 6:31 ` Michael Albinus
@ 2008-05-24 8:06 ` daniel
[not found] ` <mailman.12173.1211643425.18990.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 15+ messages in thread
From: daniel @ 2008-05-24 8:06 UTC (permalink / raw)
To: help-gnu-emacs; +Cc: Davin Pearson
> I tried the following settings but neither worked (note that the
> second one refers to
> ftp://ftp.gnu.org/old-gnu/emacs/windows/contrib/ftp-for-win32.zip
>
> (setq ange-ftp-ftp-program-name "c:/WINDOWS/system32/ftp.exe")
> (setq ange-ftp-ftp-program-name "d:/home/ftp.exe")
>
> When I try to load the following program into Emacs
>
> /davin@ftphost.ripway.com:index.php
>
Davin,
Sounds like index.php is not at the top level of the 'davin' directory. It's more likely in /home/users/davin/public_html/index.php and you're trying to get it at /home/users/davin/index.php.
gr
daniël
> it opens with an empty file yet the file index.php is known by me to
> be not empty. Click in the following link to verify that the file is
> not empty:
>
> http://h1.ripway.com/davin/index.php
>
> What am I doing wrong here? I have been using Emacs for 10 years now
> and I have written over 17,000 lines of Elisp code, including one file
> (trashcan.el) that I have submitted to the official Emacs Lisp List at
> Cambridge University.
^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <mailman.12173.1211643425.18990.help-gnu-emacs@gnu.org>]
* Re: Trouble getting ange-ftp to work
[not found] ` <mailman.12173.1211643425.18990.help-gnu-emacs@gnu.org>
@ 2008-05-25 1:37 ` Davin Pearson
2008-05-25 8:18 ` Michael Albinus
0 siblings, 1 reply; 15+ messages in thread
From: Davin Pearson @ 2008-05-25 1:37 UTC (permalink / raw)
To: help-gnu-emacs
On May 24, 8:06 pm, daniel <dan...@ackack.eu> wrote:
> Sounds like index.php is not at the top level of the 'davin' directory. It's more likely in
/home/users/davin/public_html/index.php and you're trying to get it
at /home/users/davin/index.php.
I tried C-x C-f on the following files but neither work:
/davin@ftphost.ripway.com:index.php
/davin@ftphost.ripway.com:public_html/index.php
Here is the sequence of commands for uploading index.php:
ftp ftphost.ripway.com
User: <enter davin and press enter>
Password: <enter password and press enter>
ftp> <enter put index.php and press enter>
ftp> <enter dir and press enter>
here is a snippet of the directory
07-08-07 01:35AM 9941 apple.jpg
07-08-07 01:35AM 485 apple.php
07-08-07 01:35AM 8718 banana.jpg
07-08-07 01:35AM 544 banana.php
07-08-07 01:35AM 8143 carrot.jpg
07-08-07 01:35AM 2243 fern.png
07-08-07 01:35AM 106 hello.html
05-24-08 03:01AM 629 index.php
06-18-07 01:23AM <DIR> inner
07-08-07 01:35AM 504 inner-1.php
07-08-07 01:35AM 510 inner-2.php
07-08-07 01:35AM 512 inner-3.php
07-08-07 01:35AM 510 inner-4.php
07-08-07 01:35AM 375 inner.inc
07-08-07 01:35AM 508 inner.php
ftp> <enter pwd and press enter>
257 "/" is current directory
This hopefully proves that the file index.php is located where I said
it was.
I have looked at the documentation for tramp and it seems to be a
better system than ange-ftp. Would you recommend me getting the
latest binaries of Emacs so that I can run Tramp out of the box?
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Trouble getting ange-ftp to work
2008-05-25 1:37 ` Davin Pearson
@ 2008-05-25 8:18 ` Michael Albinus
2008-05-25 8:44 ` Davin Pearson
0 siblings, 1 reply; 15+ messages in thread
From: Michael Albinus @ 2008-05-25 8:18 UTC (permalink / raw)
To: Davin Pearson; +Cc: help-gnu-emacs
Davin Pearson <davin.pearson@gmail.com> writes:
> On May 24, 8:06 pm, daniel <dan...@ackack.eu> wrote:
>> Sounds like index.php is not at the top level of the 'davin' directory. It's more likely in
> /home/users/davin/public_html/index.php and you're trying to get it
> at /home/users/davin/index.php.
>
> I tried C-x C-f on the following files but neither work:
>
> /davin@ftphost.ripway.com:index.php
> /davin@ftphost.ripway.com:public_html/index.php
Could you, please, show the contents of the buffer
*davin@ftphost.ripway.com*? It traces the underlying FTP sesion.
> I have looked at the documentation for tramp and it seems to be a
> better system than ange-ftp. Would you recommend me getting the
> latest binaries of Emacs so that I can run Tramp out of the box?
If you want to connect via another method but ftp, it is the way to go.
You can also install Tramp 2.1.13, it is compatible with GNU Emacs 21.3.
Best regards, Michael.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Trouble getting ange-ftp to work
2008-05-25 8:18 ` Michael Albinus
@ 2008-05-25 8:44 ` Davin Pearson
2008-05-25 9:17 ` Michael Albinus
0 siblings, 1 reply; 15+ messages in thread
From: Davin Pearson @ 2008-05-25 8:44 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs
2008/5/25 Michael Albinus <michael.albinus@gmx.de>:
> Davin Pearson <davin.pearson@gmail.com> writes:
>
>> On May 24, 8:06 pm, daniel <dan...@ackack.eu> wrote:
>>> Sounds like index.php is not at the top level of the 'davin' directory. It's more likely in
>> /home/users/davin/public_html/index.php and you're trying to get it
>> at /home/users/davin/index.php.
>>
>> I tried C-x C-f on the following files but neither work:
>>
>> /davin@ftphost.ripway.com:index.php
>> /davin@ftphost.ripway.com:public_html/index.php
>
> Could you, please, show the contents of the buffer
> *davin@ftphost.ripway.com*? It traces the underlying FTP sesion.
Here is the contents of the buffer *ftp davin@ftphost.ripway.com*
Invalid help command foo.
open ftphost.ripway.com
Connected to ftphost.ripway.com.
220 server [Ripside Interactive, LLC. Copyright 2003] ready.
user "davin" Turtle Power!
331 Password
230 User davin logged in. You have used 10465 KB out of 30720KB.
hash
Hash mark printing On ftp: (2048 bytes/hash mark) .
pwd
257 "/" is current directory
ls "-al /." c:/DOCUME~1/DAVINP~1/LOCALS~1/Temp/ange-ftp2012oVS
200 PORT command successful
150 ASCII data
226 transfer complete.
ftp: 396 bytes received in 0.22Seconds 1.81Kbytes/sec.
ls "-al /." c:/DOCUME~1/DAVINP~1/LOCALS~1/Temp/ange-ftp2012_CH
200 PORT command successful
150 ASCII data
226 transfer complete.
ftp: 396 bytes received in 0.00Seconds 396000.00Kbytes/sec.
So why is my buffer index.php empty? Note that it is not entirely
empty, as the buffer size is 122 bytes. Thank you in advance,
--
Sincerely and kindest regards, Davin.
Davin Pearson http://www.davinpearson.com
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Trouble getting ange-ftp to work
2008-05-25 8:44 ` Davin Pearson
@ 2008-05-25 9:17 ` Michael Albinus
2008-05-26 2:17 ` Davin Pearson
0 siblings, 1 reply; 15+ messages in thread
From: Michael Albinus @ 2008-05-25 9:17 UTC (permalink / raw)
To: Davin Pearson; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1314 bytes --]
"Davin Pearson" <davin.pearson@gmail.com> writes:
> Here is the contents of the buffer *ftp davin@ftphost.ripway.com*
>
> Invalid help command foo.
> open ftphost.ripway.com
> Connected to ftphost.ripway.com.
> 220 server [Ripside Interactive, LLC. Copyright 2003] ready.
> user "davin" Turtle Power!
> 331 Password
> 230 User davin logged in. You have used 10465 KB out of 30720KB.
> hash
> Hash mark printing On ftp: (2048 bytes/hash mark) .
> pwd
> 257 "/" is current directory
> ls "-al /." c:/DOCUME~1/DAVINP~1/LOCALS~1/Temp/ange-ftp2012oVS
> 200 PORT command successful
> 150 ASCII data
>
> 226 transfer complete.
> ftp: 396 bytes received in 0.22Seconds 1.81Kbytes/sec.
> ls "-al /." c:/DOCUME~1/DAVINP~1/LOCALS~1/Temp/ange-ftp2012_CH
> 200 PORT command successful
> 150 ASCII data
>
> 226 transfer complete.
> ftp: 396 bytes received in 0.00Seconds 396000.00Kbytes/sec.
Hmm. Just the directory listing has been transferred; there is no
attempt to receive your file. For comparision, I've used Emacs 21.4 (on
Ubuntu 8.04) for accessing the file "/anonymous@ftp.gnu.org:README". See
the attached enclosure for the dialogue.
My suspicion is that there is a problem in reading the directory
listing. Could you, please, check, whether you can open
"/anonymous@ftp.gnu.org:README"?
Best regards, Michael.
[-- Attachment #2: Type: text/plain, Size: 1706 bytes --]
ftp> open ftp.gnu.org
Connected to ftp.gnu.org.
220 GNU FTP server ready.
user "anonymous" Turtle Power!
ftp> 230-Due to U.S. Export Regulations, all cryptographic software on this
230-site is subject to the following legal notice:
230-
230- This site includes publicly available encryption source code
230- which, together with object code resulting from the compiling of
230- publicly available source code, may be exported from the United
230- States under License Exception "TSU" pursuant to 15 C.F.R. Section
230- 740.13(e).
230-
230-This legal notice applies to cryptographic software only. Please see
230-the Bureau of Industry and Security (www.bxa.doc.gov) for more
230-information about current U.S. regulations.
230 Login successful.
hash
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> Hash mark printing on (1024 bytes/hash mark).
pwd
ftp> 257 "/"
ftp> ls "-al /." /tmp/ange-ftp3614anS
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
226 Directory send OK.
ftp> quote mdtm /README
213 20070220164724
quote mdtm /README
ftp> 213 20070220164724
ftp> quote mdtm /README
213 20070220164724
quote mdtm /README
ftp> 213 20070220164724
ftp> type binary
200 Switching to Binary mode.
ftp> get /README /tmp/ange-ftp3614xUH
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for /README (1765 bytes).
226 File send OK.
1765 bytes received in 0.16 secs (10.9 kB/s)
ftp> type ascii
200 Switching to ASCII mode.
ftp> quote mdtm /README
213 20070220164724
quote mdtm /README
ftp> 213 20070220164724
ftp> quote mdtm /README
213 20070220164724
quote mdtm /README
ftp> 213 20070220164724
ftp>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Trouble getting ange-ftp to work
2008-05-25 9:17 ` Michael Albinus
@ 2008-05-26 2:17 ` Davin Pearson
2008-05-26 9:46 ` Michael Albinus
0 siblings, 1 reply; 15+ messages in thread
From: Davin Pearson @ 2008-05-26 2:17 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs
2008/5/25 Michael Albinus <michael.albinus@gmx.de>:
> My suspicion is that there is a problem in reading the directory
> listing. Could you, please, check, whether you can open
> "/anonymous@ftp.gnu.org:README"?
It seems to load README successfully with both of the following settings:
(setq ange-ftp-ftp-program-name "c:/WINDOWS/system32/ftp.exe")
(setq ange-ftp-ftp-program-name "d:/home/ftp.exe")
thanks,
--
Sincerely and kindest regards, Davin.
Davin Pearson http://www.davinpearson.com
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2008-05-27 23:15 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-24 5:17 Trouble getting ange-ftp to work Davin Pearson
2008-05-24 6:31 ` Michael Albinus
2008-05-24 8:06 ` daniel
[not found] ` <mailman.12173.1211643425.18990.help-gnu-emacs@gnu.org>
2008-05-25 1:37 ` Davin Pearson
2008-05-25 8:18 ` Michael Albinus
2008-05-25 8:44 ` Davin Pearson
2008-05-25 9:17 ` Michael Albinus
2008-05-26 2:17 ` Davin Pearson
2008-05-26 9:46 ` Michael Albinus
[not found] ` <8d7d1e6d0805261825x68e948d3ne3a9565336b9e6c8@mail.gmail.com>
2008-05-27 1:33 ` Fwd: " Davin Pearson
2008-05-27 7:05 ` Michael Albinus
2008-05-27 9:27 ` Davin Pearson
2008-05-27 9:39 ` Davin Pearson
2008-05-27 12:17 ` Michael Albinus
2008-05-27 23:15 ` Davin Pearson
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.