Hiya i did a search for this kind of thing and couldnt find anything!
I have a script that backs up a filesystem at 2 mins past 2 in the morning every morning, the problem, is i now need to progress this so that it checks if there is a tape loaded into the drive, if there is then it will proceed and backup, if not then it will logg an error message saying this to /logs/backupLog
I am still fairly new to unix, i dont fully understand complex scripting but i know basics. So if you have an answer please explain as simply as you can
What i understand is that it needs to check the tape, if theres one loaded it sets a variable to true, if not false, then i can use that variable for if statements and so on.
I cant find anything really helpfull on the net for this so hope you can help.
cheers for the help
Mark