View Full Version : FTP transfer of files with unknown size
Günter Wirth
07-24-2004, 10:08 PM
Hallo,
Is it possible to transfer data of unknown size via FTP. I use a FIFO under
LINUX and would like to read it via FTP. Because the size of the FIFO is
zero, I always get an error message "no permission".
Is that a principal problem of FTP or only of my FTP server?
Regards,
Günter
Alan Connor
07-24-2004, 10:08 PM
On Fri, 24 Oct 2003 10:37:21 +0200, Günter Wirth <g.wirth_nospam@extec.de> wrote:
>
>
> Hallo,
>
> Is it possible to transfer data of unknown size via FTP. I use a FIFO under
> LINUX and would like to read it via FTP. Because the size of the FIFO is
> zero, I always get an error message "no permission".
>
> Is that a principal problem of FTP or only of my FTP server?
>
> Regards,
> Günter
>
>
You could have the FIFO write to a file for a specified period, then FTP
that file while the next one was being created.
--
Alan C
Post validation at http://tinyurl.com/rv0y
Neil Horman
07-24-2004, 10:08 PM
Günter Wirth wrote:
> Hallo,
>
> Is it possible to transfer data of unknown size via FTP. I use a FIFO under
> LINUX and would like to read it via FTP. Because the size of the FIFO is
> zero, I always get an error message "no permission".
>
> Is that a principal problem of FTP or only of my FTP server?
>
> Regards,
> Günter
>
>
I believe that FTP at the start of a transaction sends a file size to
the client, so yeah, unknown file sizes are probably an issue for FTP
sessions. You may want to checkout a tool called netcat. It
effectively provides pipe accessability (among other things) to remote
hosts.
HTH
Neil
--
/***************************************************
*Neil Horman
*Software Engineer
*Red Hat, Inc., www.redhat.com
*gpg keyid: 1024D / 0x92A74FA1
*http://www.keyserver.net
***************************************************/
vBulletin v3.0.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.