![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 's | manas6 | UNIX for Dummies Questions & Answers | 0 | 06-05-2008 03:44 AM |
| help me to answer this | lo-lp-kl | Shell Programming and Scripting | 0 | 05-25-2008 07:45 PM |
| boolean parameter | aya_r | Shell Programming and Scripting | 0 | 09-07-2007 12:43 AM |
| can any one answer ???? | mobile01 | High Level Programming | 2 | 11-30-2006 09:32 AM |
| trying to get a boolean response from sed | badg3r | Shell Programming and Scripting | 4 | 05-30-2006 02:41 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Is there way to ping and return boolean answer?
Hello
im using sunos and i need to somehow ping other sun in the network but geting boolean return and not the "sun is alive" response can it be done ? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
I think this had been answered already !
Code:
ping <hostname> 2>/dev/null 1>&2 |
|
#3
|
|||
|
|||
|
its giving me the msg
Ambiguous output redirect |
|
#4
|
|||
|
|||
|
Could you please post the command that you had executed? ( If possible )
We could have a look !!! |
|
#5
|
|||
|
|||
|
ping sun8 2>/dev/null 1>&2
output Ambiguous output redirect. |
|
#6
|
|||
|
|||
|
can i somhow to prevent the output of
ping: unknown host sun? when the ping failed? Thanks |
|
#7
|
|||
|
|||
|
It complains about the output redirect, which is strange cause it is correct as defined. However you can try changing the redirect.
Instead of: ping sun8 2>/dev/null 1>&2 try: ping sun8 >/dev/null 2>&1 if that doesn't work you can try: ping sun8 > /dev/null 2>/dev/null |
|||
| Google The UNIX and Linux Forums |