Date: Mon, 25 Feb 2002 15:54:39 +0100 From: GABEL JULIEN <Julien.GABEL@sgam.com> To: "'Scott M. Nolde'" <scott@smnolde.com>, Joe & Fhe Barbish <barbish@a1poweruser.com> Cc: FBSDQ <questions@freebsd.org> Subject: RE: Simple script ? Message-ID: <D7444C754148D411842E00902740F56D0395848B@MAILBOX2>
next in thread | raw e-mail | index | archive | help
$ 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D7444C754148D411842E00902740F56D0395848B>