Backupedge on SCO unix email notification

Posted on 2014-08-20
Last Modified: 2014-08-21
I've got backupedge running in SCO 6.0. I've created a script that calls a perl script SendEmail, to create a basic notification email for the backups. In backupedge, I've got a notifier setup to call the script. Recipients and mail servers are hard coded in the script, so it just works. Dead simple. What I can't figure out, is how to get the backup summary from backupedge into the email. Built into backupedge is an email notifier for the root user. It sends a message in plain text to the root mailbox with the following command "|/bin/mail -s %S %n" which results in a message with the backup status as the subject and the summary report as the body of the message. So i set my script up to accept two command line parameters, one for subject, and one for the body. I'm assuming the "%S" variable is the subject line, and in practice, it is. The notification email gets sent and the subject line matches the same subject line in the message that gets sent to root, however the body is empty. I know the script works, as I can pass %S %S in the notifier and I get the subject in both places. If I pass %n %n however, I get nothing, for subject or body. So what variable is passing the summary report? I've searched high and low and I can't find anything at all about this in any sco documentation or backupedge info. I'm hoping someone has done this before and knows what the trick is.
Question by:sdholden28
    LVL 14

    Accepted Solution

    I'd think edge is piping the summary data to the mail since it starts with a pipe.

    I think edge puts the summary data into a log file in /usr/ somewhere. You could craft the mail and pipe the log file for the body, or configure backupedge to send to multiple recipients.
    Or you could use the built in tools to do this; Page 187 here:

    Author Closing Comment

    ugh... I missed the pipe! Not sure how I missed it, but thanks for pointing it out. Worked straight away. Thanks!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    How to fix error ""Failed to validate the vCentre certificate. Either install or verify the certificate by using the vSphere Data Protection Configuration utility" when you are trying to connect to VDP instance from Vcenter.
    Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
    This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
    This tutorial goes over how to archive and restore FreeBSD jails that are managed by ezjail.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now