Hi all, my 1st post here after some lurking (and searching )
I am a complete *nix/shell newbie, and migrated to OSX just last week, but I've managed to establish a few backup routines through sophisticated cut&paste . The only thing missing now are a couple of "scripts" that'll let me know when things are about to go kaboom
So basically, what I'm trying to do (but can't even figure out where to begin) is
- Test if a specific volume ("Mirror") is mounted, and if not send me an e-mail telling me (or somebody else in my team) to sort it asap
- Test the result of "/usr/sbin/fcsctl status", and if the returned string contains "not" send an e-mail again urging to restart fsctl (or maybe even restart it from shell?)
I really have no idea where to begin, tho I suspect I'll have to use grep somehow, but that's about as far as I am atm.
Any help appreciated, thx
I am a complete *nix/shell newbie, and migrated to OSX just last week, but I've managed to establish a few backup routines through sophisticated cut&paste . The only thing missing now are a couple of "scripts" that'll let me know when things are about to go kaboom
So basically, what I'm trying to do (but can't even figure out where to begin) is
- Test if a specific volume ("Mirror") is mounted, and if not send me an e-mail telling me (or somebody else in my team) to sort it asap
- Test the result of "/usr/sbin/fcsctl status", and if the returned string contains "not" send an e-mail again urging to restart fsctl (or maybe even restart it from shell?)
I really have no idea where to begin, tho I suspect I'll have to use grep somehow, but that's about as far as I am atm.
Any help appreciated, thx