View Single Post
  #1  
Old 01-07-2008, 11:23 AM
acronce acronce is offline
Registered User
 
Join Date: Aug 2006
Posts: 10
Question Status of copy in an "after copy" bash script?

Hi all,

I'm interested in firing off an "after copy" bash shell script that emails whether the copy succeeded or not. I'm familiar with shell scripts, and I can see from the manual how to invoke them after an SD copy is performed.

But what isn't clear is how to determine from the shell script whether or not the copy was successful. There are parameters passed to a "before copy" shell script that indicate what copy was performed and where. But I don't see anything about parameters passed to an "after copy" script, like the error from the copy.

Maybe the status of the copy is passed in "$?" parameter?

Thanks in advance for any suggestions.

Best,
--
Allen Cronce
Reply With Quote