The UNIX and Linux Forums
>
Operating Systems
>
AIX
NFS mount point monitoring script
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
NFS mount point monitoring script
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
06-30-2009
DukeNuke2
Soulman
Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,991
forward the output of the df -k command to /dev/null and ask for the exit status of the command...
Code:
df -k | grep test | grep -v grep > /dev/null echo $?
the output should be a "1" or "0" depending if "test" is present!
DukeNuke2
View Public Profile
Visit DukeNuke2's homepage!
Find all posts by DukeNuke2
Find DukeNuke2's past nominations received
Find DukeNuke2's present nominations given