Mailinglist Archive: opensuse-de (4938 mails)
| < Previous | Next > |
Re: Mail-hol-Skript
- From: Andreas.Kyek@xxxxxxxxx (Andreas.Kyek@xxxxxxxxx)
- Date: Mon May 22 12:29:57 2000
- Message-id: <412568E7.0044C9C6.00@xxxxxxxxxxxxxxxxxxxxxx>
Hallo,
Andre Best wrote:
und wie kann ich das Ergebnis von
ping -c 5 pop.myisp.de 2> /dev/null | grep -c "bytes from"
in eine Variable schreiben ?
m= ping -c 5 pop.myisp.de 2> /dev/null | grep -c "bytes from"
funktioniert nicht!?
m=$(ping -c 5 pop.myisp.de 2> /dev/null | grep -c "bytes from")
oder
m=`ping -c 5 pop.myisp.de 2> /dev/null | grep -c "bytes from"`
Damit übergibst Du der Variable m das Ergebnis des in `...` oder $(...)
eingeschachtelten Befehls.
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: suse-linux-unsubscribe@xxxxxxxx
For additional commands, e-mail: suse-linux-help@xxxxxxxx
| < Previous | Next > |