Quoting Agus Budy Wuysang <[EMAIL PROTECTED]> on 12-Aug-2003,
> Firman Pribadi wrote:
> >Quoting IYAN
>
> Kalau ping generate error '2>&1' yang terakhir tidak
> akan memblock.
>
> ping ... 2>&1 | grep -q ... > /dev/null 2>&1
benul!
dan itu kesalahan saya , thanks :)
> Syntax "{ }" anda diatas sepertinya tidak valid untuk bash,
> mirip kombinasi ksh, tcsh, perl & C :)
ini bukan kombinasi itu saja...
dari bash(1) :
RESERVED WORDS
Reserved words are words that have a special meaning to the shell. The
following words are recognized as reserved when unquoted and either the
first word of a simple command (see SHELL GRAMMAR below) or the third word
of a case or for command:
! case do done elif else esac fi for function if in select then until while { } time
[[ ]]
---
Compound Commands
....
{ list; }
list is simply executed in the current shell environment. list must be
terminated with a newline or semicolon. This is known as a group
command....
jadi kalo anda suatu waktu -atau- sudah terbiasa dengan 'function' di bash,
benda itu akan berdampak 'usefull' atau 'useless' tergantung dari habbit
programmingnya dimana.
> --
> +-R-| Mozilla 1.4 Gecko20030703 |-H-| Powered by Linux 2.4.x |-7-+
> |/v\ Agus Budy Wuysang MIS Department |
/* dihapus|deleted */
--
Firman Pribadi
--------------
Saat sadar akan kesalahan, saat itu Allah mencintai kita, karena dengan
kesadaran itu kita akan bertaubat, saat itulah cinta dan ampunan Nya
tercurah./MQ
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]