Hi,
I would like to be able to serve a file from a different computer.
I have written a cgi script which uses ftp to get the file and writes it
into a
fifo the fifo is then written to standard output. sometimes it works.
However extra characte or missing characters show up. Any ideas how to
fix this
up or a better way to do it would be appreciated.
this is my cgi script. the fifo was made with the command
mknod tmpipe1 p
#!/bin/bash
#
echo Content-type: application/octet_stream
echo Content-length: 1746764
echo
ncftpget -u ftp -A xx.xx.xx.xx /cgi-bin tmppipe1 &
cat < /tmppipe1
thanks,
Dave
--
David A Fournier PO Box 2040
Sidney, B.C. V8L 3S3 Canada
Phone: 250-655-3364
--
David A Fournier PO Box 2040
Sidney, B.C. V8L 3S3 Canada
Phone: 250-655-3364