ftp-client w/o controlling tty

From: T. Horsnell \(tsh\) (tsh@mrc-lmb.cam.ac.uk)
Date: Mon Jan 17 2005 - 06:52:17 EST


Hi all,
I'm trying to make an ftp transfer from with a cgi script, and
want the ftp client to use my .netrc file. The cgi script is
run by an http daemon owned by me.

If I run the test command:

#perl -e 'system "ftp desthost"'

everything works as expected, and the userid, passwd and ftp commands are
taken from .netrc. However when the command runs from within the cgi
script (under the control of the http daemon and hence no controlling tty),
the ftp command appears to try to run an interactive session, rather than
using the .netrc file, and of course fails.

Any ideas how I can force it to use .netrc? Or alternative means of doing
the ftp? I've tried building the wu-ftp client but it moans about a lack
of termcap.h :( Has anyone built alternative ftp clients on Tru64?

Cheers,
Terry.



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:50:14 EDT