From owner-freebsd-questions Mon Feb 25 6:56: 0 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost.sgam.com (mailhost.sgam.com [193.104.89.19]) by hub.freebsd.org (Postfix) with ESMTP id C7C0E37B404 for ; Mon, 25 Feb 2002 06:55:53 -0800 (PST) Received: from mailcnx1.sgam.com (mailcnx1 [10.15.1.6]) by mailhost.sgam.com (8.12.1/8.12.1) with ESMTP id g1PFs8Qo008921; Mon, 25 Feb 2002 15:54:08 GMT Received: by MAILCNX1 with Internet Mail Service (5.5.2653.19) id <10SDZC1A>; Mon, 25 Feb 2002 15:55:03 +0100 Message-ID: From: GABEL JULIEN To: "'Scott M. Nolde'" , Joe & Fhe Barbish Cc: FBSDQ Subject: RE: Simple script ? Date: Mon, 25 Feb 2002 15:54:39 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG $ cat getpackage #!/bin/sh ftp -a -v ftp5.FreeBSD.org:/pub/FreeBSD/releases/i386/4.4-RELEASE/packages/$1 exit 0 With the use : $ getpackage "misc/ytree-1.74.tgz" or $ getpackage misc/ytree-1.74.tgz For "pkg_fetch", you need to install "sysutils/portupgrade" : This package also includes the following utilities: [...] pkg_fetch: Fetches packages from a remote site. [...] Julien. -----Message d'origine----- De : Scott M. Nolde [mailto:scott@smnolde.com] Envoye : lundi 25 fevrier 2002 15:48 A : Joe & Fhe Barbish Cc : FBSDQ Objet : Re: Simple script ? Would it be any different than pkg_fetch(1)? Joe & Fhe Barbish(barbish@a1poweruser.com)@2002.02.25 09:35:19 +0000: > I have the following script that I call getpackage. > I want to change it so I can say getpackage misc/ytree-1.74.tgz > or any other directory/file name and it will be substituted in the ftp > command. > > How do I do this? > #! /bin/sh > > ftp -a -v > ftp5.FreeBSD.org:/pub/FreeBSD/releases/i386/4.4-RELEASE/packages/misc/ytree- > 1.74.tgz -- Scott Nolde GPG Key 0xD869AB48 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message