Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General

Reply
 
Thread Tools Rate Thread Display Modes
  #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
  #2  
Old 01-07-2008, 11:31 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
The status isn't passed in, because it's not called if there was an error.
__________________
--Dave Nanian
Reply With Quote
  #3  
Old 01-07-2008, 12:01 PM
acronce acronce is offline
Registered User
 
Join Date: Aug 2006
Posts: 10
Quote:
Originally Posted by dnanian View Post
The status isn't passed in, because it's not called if there was an error.
Oh. So that means the only way for me to know that an error happens is if I don't get an email. That might be tough to remember 6 months from now when a server backup fails.

It would be nice if there was some sort of facility to run an error script.

Or maybe this issue will be sidestepped when the new Growl support is finalized?

Best,
--
Allen Cronce
Reply With Quote
  #4  
Old 01-07-2008, 12:03 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
I don't know what you mean, Allen: if you use the current Growl support, it'll tell you if there was an error OR a success.
__________________
--Dave Nanian
Reply With Quote
  #5  
Old 01-07-2008, 01:05 PM
acronce acronce is offline
Registered User
 
Join Date: Aug 2006
Posts: 10
Quote:
Originally Posted by dnanian View Post
I don't know what you mean, Allen: if you use the current Growl support, it'll tell you if there was an error OR a success.
Oh, sorry. I thought that was a new feature based on the title of the sticky poll in this forum. But it looks like that thread was originally posted a long time ago.

I really haven't looked at Growl support at all yet. I did a search in the User's Guide before posting, but didn't find anything.

Looks like I need to do a little research to see if Growl will provide an alternative solution to my notification problem.

Best,
--
Allen Cronce
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting from backup guruuno General 27 10-16-2009 11:53 PM
Error in SD copy over FW between 2 FW drives Travers2K General 1 06-04-2007 11:19 AM
error code=3 ACL issue vudutu General 9 12-13-2006 02:32 PM
BackUp hangs at 3% JimK General 10 09-27-2005 09:48 AM
Error: No space left on device tradervic General 11 06-29-2005 04:50 PM


All times are GMT -4. The time now is 03:20 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.