![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help needed for multiline comment deleting script | aster007 | Shell Programming and Scripting | 1 | 10-10-2008 05:40 AM |
| How to copy and comment out | upsrk | Shell Programming and Scripting | 3 | 06-19-2008 11:01 AM |
| How to put a comment at the begining of the sentence | madhusmita | Shell Programming and Scripting | 1 | 06-19-2008 03:14 AM |
| Block Comment in Shell script | skyineyes | Shell Programming and Scripting | 3 | 07-02-2007 08:15 AM |
| # comment | rocker40 | UNIX for Dummies Questions & Answers | 6 | 01-07-2004 12:53 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Pls comment on my script.
Hi guys, hope you scripting gurus here can help me out, the logic in my script somehow not working the way it should, this script part of a bigger backup script suppose to do some checking on the cluster prior to bringing up the package on MC/SG after backend cloning operation, this portion is suppose to check switching parameter if it is disabled, if so then turn it on with command "cmmodpkg -v -e -n hostname package_name", somehow it's not working.
![]() Quote:
# ./ccc enabled <<<--- from echo $PRISTAT cmmodpkg -v -e -n PRIMARY PACKAGE_NAME <<<--- this is wrong output enabled <<<-- from echo $SECSTAT cmmodpkg -v -e -n SECONDARY PACKAGE_NAME <<< -- this also wrong output which is wrong. the output from cmviewcl # /usr/sbin/cmviewcl -v | grep -i current | awk '{ print $3 }' enabled # /usr/sbin/cmviewcl -v | grep -i alterna | awk '{ print $3 }' enabled can somebody pls help me. Last edited by sparcguy; 11-19-2008 at 11:48 PM.. |
|
||||
|
wow zaxx, solid man! makes a lot of difference
# ./ccc switching mode on Primary is already enabled switching mode on Secondary is already enabled one thing tho just for me to understand, what's the difference between the statement [ $STAT2="running" ] [[ $PRISTAT != "enabled" ]] Both are working, my question is does the space around the = makes any difference? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|