tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "T. Horsnell \(tsh\)" <tsh@mrc-lmb.cam.ac.uk>
Subject: ftp-client w/o controlling tty
Date: Mon, 17 Jan 2005 11:52:17 +0000 (GMT)	[thread overview]
Message-ID: <E1CqVQf-000yA6-Mc@alf1.lmb.internal> (raw)

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.


             reply	other threads:[~2005-01-17 11:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-17 11:52 T. Horsnell (tsh) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-01-17 16:50 ftp-client w/o controlling tty T. Horsnell (tsh)
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox