Unable to execute .sh script
Hi There
I am trying to execute a .sh script, however when I go to submit I get the following response: Quote:
Quote:
Quote:
Code:
users_connected=`/opt/ca/APM/Introscope10.2.0.27/logs/IntroscopeWebView.log | awk '{name[$11]++} END {for (i in name) print i,name[i]}' | sort -n -k 2` |
Yes, you cannot execute the log file. It is text data and not a program so it will fail. So you must tell awk to read the log file:
Code:
users_connected=$(awk '{name[$11]++} END {for (i in name) print i,name[i]}' /opt/ca/APM/Introscope10.2.0.27/logs/IntroscopeWebView.log | sort -k2,2n -k1,1); |
Thanks Turbocapitalist thats fixed the issue :) Also thanks for explaining to me the problem :)
|
All times are GMT -5. The time now is 06:17 PM. |