Re: Mail-hol-Skript
Hi, 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!? BYe Andre * Andre Best * andre.best@gmx.net * Fax 089 2443 15498 * --------------------------------------------------------------------- To unsubscribe, e-mail: suse-linux-unsubscribe@suse.com For additional commands, e-mail: suse-linux-help@suse.com
On Mon, May 22, 2000 at 01:10:35PM -0500, Andre Best wrote:
** Reply to note from Jan.Trippler@t-online.de (Jan Trippler) Sun, 21 May 2000 16:15:50 +0200
On Son, Mai 21, 2000 at 08:45:13 +0200, Norbert Raebiger wrote: [wvdial-Script]
declare -i n=1 echo -n "verbinde " while [ $n -lt 20 ] ; do n=$[n+1] if [ `ping -c 5 pop.myisp.de 2> /dev/null | grep -c "bytes from"` -gt 0 ] ; then > > break
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!?
..und wenn du m='ping -c 5 pop.myisp.de 2> /dev/null | grep -c \"bytes from\"' ..also in 'apostrophe packst und die "" entschärfst?? (\ => "Fluchtzeichen") Gruß, Clemens -- sig_11 Du möchtest die schrecklichen signatures von mir/uns nicht mehr sehen? Nagut, folgendes in die .procmailrc: :0 fBw * ^--$ | sed -e 's/^--$/-- /' ------------------------------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: suse-linux-unsubscribe@suse.com For additional commands, e-mail: suse-linux-help@suse.com
On Mon, Mai 22, 2000 at 11:19:25 +0200, Clemens Wohld wrote:
On Mon, May 22, 2000 at 01:10:35PM -0500, 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!?
..und wenn du m='ping -c 5 pop.myisp.de 2> /dev/null | grep -c \"bytes from\"'
..also in 'apostrophe packst und die "" entschärfst?? (\ => "Fluchtzeichen")
Die \ sind nicht notwendig. Jan --------------------------------------------------------------------- To unsubscribe, e-mail: suse-linux-unsubscribe@suse.com For additional commands, e-mail: suse-linux-help@suse.com
participants (3)
-
andre.best@gmx.net
-
c.wohld@ndh.net
-
Jan.Trippler@t-online.de