![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| if statement | ramky79 | Shell Programming and Scripting | 6 | 05-29-2008 12:17 AM |
| IF Statement | koti_rama | Shell Programming and Scripting | 3 | 04-29-2008 01:48 AM |
| If statement - How to write a null statement | april | Shell Programming and Scripting | 3 | 04-16-2008 10:14 AM |
| using && in if statement .. | jisha | Shell Programming and Scripting | 7 | 02-01-2008 04:52 AM |
| If statement | mariner | UNIX for Advanced & Expert Users | 4 | 12-16-2004 04:21 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
if statement
I have below program to find the process "orapp" and echo the result ,
if xxxx then for x in `ps -ef |grep "orapp" |awk { print $2; } do echo $x done else xxxx fi now if I want to add one more condition - if the IP address of the process is 192.168.0.1 ( who -u |awk { print $8} , how can I mix these two condition into one script ? thx. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Quote:
|
|
#3
|
||||
|
||||
|
Please post the actual code that you have got so far. Also, please refrain from bumping up your post. That is against the rules.
|
||||
| Google The UNIX and Linux Forums |