My backup script (sh) works fine except when the
backup drive (USB Flash drive) is not plugged in. I'm
using mount_msdosfs to mount the backup drive.

What is the best way to handle mount_msdosfs error?
If the drive is not mounted, I want to detect the
failure and execute error-handling code.

I tried executing it in a subshell, which works when
it FAILS, but not when it WORKS.
Also tried trap <mount command> 0, but it did not help.


       
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play 
Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to