Search Results

Search: Posts Made By: vinbob
7,576
Posted By vinbob
Of course! I've gone the route of your 3rd...
Of course!

I've gone the route of your 3rd example were I'm conditionally printing the string on the closing brace and notice that you've quite sensibly chosen to use an array of variables. I've...
7,576
Posted By vinbob
Parsing Nagios service config files with awk
Hope someone can help, I've been pulling my hair out with this one...

I've written a shell script that does a sanity check on our quite extensive Nagios configuration for anything that needs...
2,017
Posted By vinbob
Change the "ls -lrt" to "ls -1rt" and get rid of...
Change the "ls -lrt" to "ls -1rt" and get rid of the awk command.
You should also redirect stderr from the ls to /dev/null.
2,589
Posted By vinbob
These all seem a bit obtuse, testing for numbers...
These all seem a bit obtuse, testing for numbers etc.
What about a simpler way...
if [[ -z $(grep "/usr2/bin/ftpd" /var/tmp/check.tmp) || -z $(tail -20 /usr2/logs/ftp.log | grep -i disconnecting)...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 06:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy