From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GbnHg-0005SW-Oz for garchives@archives.gentoo.org; Mon, 23 Oct 2006 00:03:17 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k9MNxJWU013510; Sun, 22 Oct 2006 23:59:19 GMT Received: from ender.volumehost.net (adsl-69-154-123-202.dsl.fyvlar.swbell.net [69.154.123.202]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k9MNv8GV032438 for ; Sun, 22 Oct 2006 23:57:08 GMT Received: from localhost (localhost [127.0.0.1]) by ender.volumehost.net (Postfix) with ESMTP id 4105DED9 for ; Sun, 22 Oct 2006 23:57:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at volumehost.net Received: from ender.volumehost.net ([127.0.0.1]) by localhost (ender.volumehost.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nw8efGOWsyA8 for ; Sun, 22 Oct 2006 23:57:06 +0000 (UTC) Received: from adsl-69-154-123-205.dsl.fyvlar.swbell.net (adsl-69-154-123-205.dsl.fyvlar.swbell.net [69.154.123.205]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ender.volumehost.net (Postfix) with ESMTP id 2792EE99 for ; Sun, 22 Oct 2006 23:57:06 +0000 (UTC) From: "Boyd Stephen Smith Jr." To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Disabling net.ath0 backgrounding Date: Sun, 22 Oct 2006 18:56:59 -0500 User-Agent: KMail/1.9.5 References: <49bf44f10610040938k8813062nadf9b4a4af8425cf@mail.gmail.com> <200610221433.28219.bss03@volumehost.net> <49bf44f10610221407w62417cb7u3871242955dd256f@mail.gmail.com> In-Reply-To: <49bf44f10610221407w62417cb7u3871242955dd256f@mail.gmail.com> X-Eric-Conspiracy: There is no conspiracy Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2861771.EVBgxoRPvb"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200610221857.04209.bss03@volumehost.net> X-Archives-Salt: c9df819f-39c8-4190-a2b6-bd4321805e8d X-Archives-Hash: 2665828813c61fd4c5d951803b89d461 --nextPart2861771.EVBgxoRPvb Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 22 October 2006 16:07, Grant wrote=20 about 'Re: [gentoo-user] Disabling net.ath0 backgrounding': > > > How can I execute this from the command line? > > You should just be able to type it in or cut/copy and paste from my > > original email. bash (and indeed most shells) don't interpret the > > input from the command line significantly different than the content > > of a script file. > If I use spaces instead of line breaks so I can put it all on one line > it doesn't seem to work out. I'm missing something here. You should be able to use linebreaks; bash will, appropriately, wait for=20 more input if you are in the middle of a larger construct (if/while/etc.). You should also be able to use spaces, but you have to add a semi-colon=20 after each simple command. If I was to do it as a one-liner it would be: if /etc/init.d/net.ath0 status | grep -q started; then /etc/init.d/net.ath0= =20 restart; else /etc/init.d/net.ath0 start; fi =2D-=20 "If there's one thing we've established over the years, it's that the vast majority of our users don't have the slightest clue what's best for them in terms of package stability." =2D- Gentoo Developer Ciaran McCreesh --nextPart2861771.EVBgxoRPvb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFPAVQq72nDbhDXToRAvrQAJkBtIqUxuEMA01LjIpq0cexxg+s4QCbB8jI Bhil5hawOW55ygyrlAkJ/zA= =viZV -----END PGP SIGNATURE----- --nextPart2861771.EVBgxoRPvb-- -- gentoo-user@gentoo.org mailing list