From owner-freebsd-questions@FreeBSD.ORG Tue Mar 30 01:58:42 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51883106566B for ; Tue, 30 Mar 2010 01:58:42 +0000 (UTC) (envelope-from pit@joseph-a-nagy-jr.us) Received: from outbound-mail-158.bluehost.com (outbound-mail-158.bluehost.com [67.222.39.38]) by mx1.freebsd.org (Postfix) with SMTP id 205848FC1B for ; Tue, 30 Mar 2010 01:58:41 +0000 (UTC) Received: (qmail 23892 invoked by uid 0); 30 Mar 2010 01:58:40 -0000 Received: from unknown (HELO box264.bluehost.com) (69.89.31.64) by cpoproxy2.bluehost.com with SMTP; 30 Mar 2010 01:58:38 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=joseph-a-nagy-jr.us; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:X-Enigmail-Version:Content-Type:X-Identified-User; b=N0UFNAWwe7rMPLbjidfTYBMEeeLTUDfXWZ1lrZ3/49ld0rsNQUFQh3uhDuEvMyQKoLjVPiEO6RpSq2oB8JotWMMZt3StW5Biwmbb1OFpWir8CN7DwGFAWavDNYtc3e3G; Received: from [206.74.86.236] (helo=[192.168.1.101]) by box264.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NwQj0-0005pS-FC for freebsd-questions@freebsd.org; Mon, 29 Mar 2010 19:58:38 -0600 Message-ID: <4BB15AB5.6070808@joseph-a-nagy-jr.us> Date: Mon, 29 Mar 2010 20:58:13 -0500 From: Programmer In Training User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.8) Gecko/20100324 Thunderbird/3.0.3 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4BAE3E5C.8020905@joseph-a-nagy-jr.us> <1269787599.6000.15.camel@localhost> In-Reply-To: <1269787599.6000.15.camel@localhost> X-Enigmail-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBC13C9AFBD6677A8641021B0" X-Identified-User: {2250:box264.bluehost.com:ameliora:joseph-a-nagy-jr.us} {sentby:smtp auth 206.74.86.236 authed with pit@joseph-a-nagy-jr.us} Subject: Re: Enough Is Enough X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2010 01:58:42 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBC13C9AFBD6677A8641021B0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 03/28/10 09:46, Sergio de Almeida Lenzi wrote: > this scripts outputs the commands needed to fix the system I'm having some problems with the script. > watch out > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > #!/bin/sh >=20 > endp() { > rm -f $t > exit $1 > } >=20 > t=3D/tmp/$$ >=20 > if [ $# -ne 1 ] > then > echo use $0 library > endp 1 > fi >=20 > lib=3D$1 >=20 > find /usr/local/bin /usr/local/lib -name -type f | \ Is the 'f' a typo? I had to remove it because find kept on erroring on it= =2E > while read x > do > grep $lib $x | \ > awk '{print $3}' | \ > while read y > do > pkg_info -W $y >> $t > done > done > awk '{print $NF}' $t | sort -u > /tmp/buildpkglist > echo nice portmaster -Bdg `cat /tmp/buildpkglist` > endp 0 The final output (after removing the stray 'f'): =2E/portmaster-script jpeg awk: can't open file /tmp/42352 source line number 1 nice portmaster -Bdg ran as regular user and root to no different affect. I switched out all instances of awk for grep with the following result: =2E/portmaster-script jpeg grep: /tmp/42436: No such file or directory nice portmaster -Bdg Thanks for the suggestion, but this script doesn't seem to work on my system and I can't seem to figure out what exactly is causing it to fail.= --=20 Yours In Christ, PIT Emails are not formal business letters, whatever businesses may want. Original content copyright under the OWL http://owl.apotheon.org Please do not CC me. If I'm posting to a list it is because I am subscrib= ed. --------------enigBC13C9AFBD6677A8641021B0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iQEcBAEBAgAGBQJLsVrIAAoJEENZQ8DH7rW02UcH/iyHguE+GS6EK7nUiUs8wX8P GZcEemuJpnasc0HwyRsPxca9FeQKKAT/LRo+yy7rABnkO7JDlPYDi1I9etuJIioU ry6JzQI9Uq9YRznTJ1Mu6PrjrM262DtbWlSvJlMOVMy4amgWcdu6GkXRuh0/E7gw 4+NEf8KZjWA/h2sussbu8GwptAQ3E8F8EAFDKVgOatLLvShgaCt+Q9T1CPkksPZs bb2xSb0noCr8Z6stID0SRh7OkDshVZpFvKGXWdcioscNyiwsbpFHrKp9uMgQW6+D QLoN+gbIZRpiriGht/gUAyXrN8gNh6EFnF1Kzza5cItzcKuuiaTQ2pXgqz7c7Bo= =Lh32 -----END PGP SIGNATURE----- --------------enigBC13C9AFBD6677A8641021B0--