this works for me, recheck your install, or otherwise
try to compile ftp again from sources.
-Jesus
Ed Ahlsen-Girard escribis:
I'm trying to automate getting the sets and source for running -current.
For some reason, this syntax:
ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz
or this:
ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/bsd.rd
works great from the command line. But not in scripts, either shell:
#!/bin/sh
cd /where/I/put/sets
rm *
# all above work fine
ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz
or perl:
#!/usr/bin/perl
`cd /where/I/put/sets`;
`rm *`;
# all above work fine
`ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz`;
Using system () does not get any different behavior, whether I pass a
list or a proper array. In all cases I see a connection to the
server, followed
by a complaint of an invalid directory, and disconnection.
I've been using perl for about ten years, and I'm pretty sure my perl
is ok.
Anybody have an idea of what I'm missing?