Search results

  1. S

    Faulty format script

    The first crontab "event" in my backup routine is a script/command to format an external firewire disk to prepare for filecopying. I've had the script running for 5-6 months without a hitch, but this last week it's been really troublesome and effectively non functional halting the entire backup...
  2. S

    Shell / script pointers needed

    Thanks a lot, that pretty much solved it :) The "if" man page isn't terribly helpful, but I guess I've got it now Now to figure out how to translate $today to norwegian ($idag) to match the disk labels for the mail subject :confused:
  3. S

    Shell / script pointers needed

    And for the other one (status test) /usr/sbin/fcsctl status > status.txt grep not status.txt if grep = not mail -s "FCSCTL DOWN!!" me@my.domain fi else fi Putting the result in a variable and do grep on that (if possible) is probably even better so I don't have to make a new...
  4. S

    Shell / script pointers needed

    Could I do something like (pseudo code) Ifexist /volumes/volumename fi else mail -s "Mount volumename" me@my.domain fi And if so, how do I properly format it?
  5. S

    Shell / script pointers needed

    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 :D. The only thing missing now are a couple of "scripts" that'll let me...
Back
Top