public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Boyd Stephen Smith Jr." <bss03@volumehost.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Disabling net.ath0 backgrounding
Date: Sun, 22 Oct 2006 18:56:59 -0500	[thread overview]
Message-ID: <200610221857.04209.bss03@volumehost.net> (raw)
In-Reply-To: <49bf44f10610221407w62417cb7u3871242955dd256f@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]

On Sunday 22 October 2006 16:07, Grant <emailgrant@gmail.com> wrote 
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 
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 
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 
restart; else /etc/init.d/net.ath0 start; fi

-- 
"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."
-- Gentoo Developer Ciaran McCreesh

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-10-23  0:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-04 16:38 [gentoo-user] Disabling net.ath0 backgrounding Grant
2006-10-04 16:50 ` darren kirby
2006-10-04 19:45 ` Boyd Stephen Smith Jr.
2006-10-22 17:01   ` Grant
2006-10-22 18:35     ` Boyd Stephen Smith Jr.
2006-10-22 19:12       ` Grant
2006-10-22 19:33         ` Boyd Stephen Smith Jr.
2006-10-22 21:07           ` Grant
2006-10-22 23:56             ` Boyd Stephen Smith Jr. [this message]
2006-10-23  0:00             ` Boyd Stephen Smith Jr.
2006-10-22 21:09           ` Grant
2006-10-23  0:06             ` Boyd Stephen Smith Jr.
2006-10-23  0:10         ` Boyd Stephen Smith Jr.
2006-10-23 16:03           ` Grant
2006-10-24  3:51           ` Grant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200610221857.04209.bss03@volumehost.net \
    --to=bss03@volumehost.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox