InigoMontoya
IS-IT--Management
set -A instance2 `ps -ef | grep smon | grep -v grep | nawk -F"_" '{print $3}'`
The snippet of code above is inside a case statement for some reason i receive a syntax error when I run the script:
set -A instance2 `ps -ef | k4[82]: syntax error at line 143 : `|' unexpected
When I run the same code directly on the command line it works fine. What gives?!
The snippet of code above is inside a case statement for some reason i receive a syntax error when I run the script:
set -A instance2 `ps -ef | k4[82]: syntax error at line 143 : `|' unexpected
When I run the same code directly on the command line it works fine. What gives?!