Operating System - HP-UX
1829662 Members
9778 Online
109992 Solutions
New Discussion

backup command - shd email when completed

 
Mike Swift
Occasional Advisor

backup command - shd email when completed

Greetings!

I am doing fbackup (full backup of /) and i want to email the result to my email id and aLso i need to run this in the background and at the same time when it is run successful i shd get email. what would be the best way to do it?

Thanks

Mswift
2 REPLIES 2
Steven Schweda
Honored Contributor

Re: backup command - shd email when completed

Uh, shell script?

> [...] run this in the background [...]

&

> [...] what would be the best way to do it?

Define "best".

A simple Forum (or Google) search should find
many shell scripts which send e-mail. You
might look for "mailx".
Dennis Handly
Acclaimed Contributor

Re: backup command - shd email when completed

>I need to run this in the background

If you do this, you should run the whole script in the background. Then the script will just do the fbackup and check, sequentially.

See this thread for fbackup status checking:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1301139