Mail status-reports from daemon fails

Hi all,
I'm using a daily backup-script «Backup-Bisang.sh» controlled by launchd:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.bisang.backup-daily</string>
<key>Program</key>
<string>/opt/local/sbin/Backup-Bisang.sh</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/sbin/Backup-Bisang.sh</string>
</array>
<key>ServiceDescription</key>
<string>Daily backup from server</string>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>16</integer>
<key>Minute</key>
<integer>25</integer>
</dict>
<key>UserName</key>
<string>ruedibis</string>
</dict>
</plist>
The script itself should email me a status-report:
rsync $MY_OPTIONS >> /tmp/backupscripttmpfile
Mailx -s "Backup Report `date "+%d.%m.%y %H:%M:%S"`" $MAILADDR </tmp/backupscripttmpfile
This works fine, if I test the script via terminal (all report data in the message body). If the script executes via launchd (as daemon), an email is sent, but with an empty body! Although the backupscripttmpfile is correct. What may cause this strange behavior?

If I pipe my tmp_file like this:
cat /tmp/backupscripttmpfile | Mailx -s "Backup Report `date "+%d.%m.%y %H:%M:%S"`" $MAILADDR
then it works fine. Why?

Similar Messages

  • How to Use Solution Manager to collect Status Reports from Consultants

    Hi,
          I am planning to use Solution Manager for collecting the weekly status reports from my consultants and maintain it as a repository . Please let me know the best way of doing this in SOLMAN. There should be mailing options too.
    BR,
    Raj

    Hi Rajasan,
    to be able to meet this requirement, you need to set up plan working load in admin tab for your resource,  they need to update actual data based on the work completion, you will get status of work,
    if you require email, you need to set-up scot, then develop a program with execution scheduling
    please check and revert
    Anil

  • Java runtime plugin 14.9 is installed on my Mac 10.8, but the plugin status report from Mozilla says I need to update it. How do I resolve this?

    Mozilla's plugin status report says that I need to update Java Runtime Environment, and that I am running version 14.9.0. But when I download the update, all I get is "Java 8 Update 40", which my computer says is an older version. I can't find any info on a later version than 14.9. Nor can I find this plugin in my computer -- it does not appear in the System Preferences window, or in the Applications Folder (including in Utilities). How do I clear this up? (Note: I disabled Firewall).

    Hmm, Java 8 Update 40 should be the current version for both Windows and Mac. Do you recall where you got a version 14.9 -- was it part of an Apple update instead of coming from Oracle (which now operates java.com)?
    I see similar threads on Apple's discussion forums but can't personally confirm whether the solutions work. For example:
    * https://discussions.apple.com/thread/6857925#27894419
    * https://discussions.apple.com/thread/6861354#27780165

  • Required to take periodic backup status report from SQL server

    Dear All,
    I need to take periodic database backup status of all sql server instance in different domain. But, i am doing it by logging into all sql server manually.
    We can do it through option called ' Managed server' in sql server by connecting required server.
    But, I want to know the script and any other option in sql server to connect all sql instance in different domain group to take backup status report in single run.
    I need your help here and share the experience if you implemented ever in your environment.

    see
    http://www.mssqltips.com/sqlservertip/1601/script-to-retrieve-sql-server-database-backup-history-and-no-backups/
    You can use above scripts to capture the information
    For automated execution wrap it in a procedure with INSERT statement to dump the results onto a table and call the procedure from sql agent job to execute  it based on a predefined schedule.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Use run_product call report from form failed.

    Hi Expert,
    I have a report in my application server and run report like below, it works fine.
    run_product(REPORTS,'/gr100/MILK/MILKdev/xxc/reports/XCPO5004',SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id,NULL);
    Unfortunately, I save the report in DB and run like below, it doesn't work.
    run_product(REPORTS,'210.126.129.201:/gr100/MILK/MILKappl/xxc/11.5.0/reports/KO/XCPO5004',SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id,NULL);
    210.126.129.201 is the db server ip address.
    I change to run like
    run_product(REPORTS,'210.126.129.201:/gr100/MILK/MILKappl/xxc/11.5.0/reports/KO/XCPO5004',SYNCHRONOUS, RUNTIME,DB, pl_id,NULL);
    I still not work.
    Product version is Forms&Reports 9.0.4
    Will any expert give some advise on this? Or Do you have any idea to call the report from db?
    Thank you in advance!

    Hi Tony,
    Thank you for the update.
    If I use run_product to call a report from a remote server, what is the syntax of it.
    I use run_product(REPORTS,'210.126.129.201:/gr100/MILK/MILKappl/xxc/11.5.0/reports/KO/XCPO5004',SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id,NULL);
    210.126.129.201 is the server ip address, and /gr100/MILK/MILKappl/xxc/11.5.0/reports/KO/XCPO5004 is the location of the report.
    If this is incorrect, which to be modified.
    Thank you,
    Helen

  • Status report from Procedure/functions

    All,
    I have procedures /functions in my database. I need to return a status value back to the call procedures/functions to report the sub_procedure/function executed successfully.
    What is the status value if a procedure/function executed successfully? And what is the value for un_successful execution? Where I can get it from?
    Thanks a lot!

    This is really a design choice that you have to make in your application. PL/SQL stored procedures / functions do not return any implicit status codes on there own. In your PL/SQL code, you can check the SQLCODE built-in function for the status of the last SQL statement executed, but this is hardly the same thing (and really designed for use in exception handlers).
    You may choose to design you applications such that every call must return a status value. In this case, the values used to represent success or failure are up to you (I might suggest 0 for success and the error code - which will be non-zero - for failure). You can either use functions which always return a number (probably not a good idea to place this limitation on your application); you might design all stored procedures to return an output parameter which indicates success or failure.
    But, in general, your client code should be designed to correctly handle all Oracle exceptions - if no exception is raised, then success, else failure. And your PL/SQL should avoid bad practices like exception handlers which trap WHEN OTHERS and don't re-raise the exception.

  • How to mail a report from oracle form

    Hi,
    I have a form which call a report and report should mail to sender.
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,MAIL);
    But where to give sender mail id, I don't know.
    Can anybody help me...
    Thanks in advance

    Hi Francois,
    Refer above documentation.
    Destype = mail
    desname =receiver emailid
    replyto = sender emailid
    configure smtp server still unable to send mail.
    Giving Following error:
    Rep-57054: inprocess job terminated. Report generated sucessfully but distribution to destination failed.
    Rep-50159: Report generated sucessfully but distribution to destination failed.
    Rep-50152: Destination Id failed with an error occurred while sending mail No receipent address.

  • E-mailing pdf-report from Adobe

    In a Forms application running on a 10g applicationserver (9.0.4.1.0) I am calling a reportserver to create a pdf-report and show it on the screen. I am using web.show_document to achieve this. The report is shown in Adobe Reader in the Browser window (Int Explorer). If I then press the Email button in Adobe a new Outlook message window is opened with the pdf-file already inserted as attachment. This allows me to sent the Report immediately by E-mail.
    I have a two questions regarding the use of the feature.
    I am performing application management on the application for a costomer on a different location. The feature described above works in my development surrondings. The customer can do the same actions as described, with the exception that the report is NOT automatically attached to the new mail-message. I am trying to determine the reason for this.
    The E-mailing feature and linking as attachment seems to work fine when used outside the browser. Also, when opening a pdf-file from the internet and pushing the Email button the file is automatically linked as attachment. These steps work equally for me and the client. However, when starting from a reportserver the attachment is missing for the client, as described above.
    What could be the reason for the difference in behaviour? The only difference that I see is that the costomer uses Adobe 6 (an not able to upgrade) and I am using Adobe 7.
    Another question is regarding the name of the attachment. What determines the name of the attachment the Outlook uses when performing this type of E-mailing?

    Hi,
    you really should ask thsi question on an Adobe forum because this would happen to any PDF files not only those generated by Reports or accessed from Forms.
    Do you know that Oracle Reports, since version 9i, can send PDF attached to emails ?
    Frank

  • E-mail a report from SAP

    Hai Friends,
    The following is my selection screen.
    Sales Office: (Parameters)
    Month/Year: (Parameters)
    Customer: (Select Options)
    All the fields are mandatory. i enter the Sales Office as '5001' and Month/Year as '03/2009' and Customer as 100640 to 100650 and execute and send it to spool request. the report will be skipped for each customer in the smartforms and we used to take the prints.
    Now my requirement is i have to execute the report and the report for each Customer should be sent to his e-mail inbox. we use Lotus mail and we have integrated Lotus and SAP. (i.e.) the report of customer 100640 should go to his e-mail and so on..........
    how can i do this?. each of our dealer is having the e-mail id.

    Hi,
    Check this link..https://wiki.sdn.sap.com/wiki/display/ABAP/SmartformSendvia+Email
    [ Any sample ABAP code to send Lotus Notes email to a list of people?|Any sample ABAP code to send Lotus Notes email to a list of people?]

  • Unable to open messages in Hotmail. Why are there no status reports from Firefoxs response to this problem?

    When I log on to my Hotmail account, unable to get any folders messages to open? Been going on for two weeks or more.

    Hi,
    Thanks for your reply.
    I am not able to see the SOFM Object in the container itself. Also there are no values in AttachObjects.
    Does this have anything to do in the workflow end? The attachments are coming from the portal. Does anything have to be set in the WF to set this.
    Does any code have to be written in the WF to get the attachment from the portal...kindly let me know.
    Thanks in advance for all the help.

  • Task status  report in cProject 3.1

    Hi,
    I want to extract task status report from cProject 3.1.
    Report should contain task name, status, start date,end date , effort etc.
    Thanks in advance
    Shiv

    Hi,
    Activate the form DPR_TASK_HIER for a particular Project type in SPRO screen. Now keep the cursor on any task in cProjects & click on Print pushbutton, this will generate a PDF Report which will contain Task name, Constraint dates, actual dates, administration details etc. In order to add more data to the Report, goto transaction SAMRTFORMS & edit the form DPR_TASK_HIER.
    Hope this will help you.
    Regards,
    Sujay G

  • How to e-mail a report

    I have created a Library database. In this database i have created a over due report for the books which are over dued. I want to e-mail that report automatically to the user and manager of Library when the bokk is over dued. How can i e-mail my report from oracle portal.

    These are a few links that I remember: http://technet.oracle.com:89/ubb/Forum81/HTML/000450.html http://technet.oracle.com:89/ubb/Forum70/HTML/000268.html http://technet.oracle.com:89/ubb/Forum70/HTML/000725.html
    To find more links on this topic just search for "mail" in this forum and also on portal forum.
    Thanx,
    Chetan.

  • CProjects Project status report not generated

    Hi
    I am facing problem of getting Project status report for a project in cProjects 4.0
    I am at client side and accessing the IDES ECC6.Her I am trying for getting Project status report for the project created.
    The error I am getting is :
    "WebDynpro Exception: ADS: Request start time: Thu Aug 21 16:53:27 GMT+03:00 2008(200,101). "
    In customizing for cProjects I have used the std. form available for the same, activated the same for the project type and when tried to get the report I got the above mentioned error.
    Then in se38 I executed the programme FP_TEST_IA_01 the result was :
    ADS: Request start time: Thu Aug 21 17:23:42 GMT+03:00 2008(200,101)
    Also I have activated the following services
    SICF->Services->default_host->sap->bc->fp and fpads, both are active.
    But still I am not getting project status report from cProjects.
    Please guide me what else should I do to get the project status report?
    Thanks and Regards,
    Niraj Sikligar

    Hi Reema,
    Its great to hear from you.
    I have run the report : FP_PDF_TEST_00
    Out put is :
    Version Information:                705.20060620101936.310918
    What does that mean ?
    Secondly,
    I have checked RFC destination for ADS the results were as shown below:
    On Technical Settings tab page :
    target host: ides
    Path prefix: /AdobeDocumentServices/Config?style=rpc
    Is this OK?
    Is there anything else to be done?
    Regards,
    Niraj Sikligar

  • CProjects 4.0 - Project Status Report

    Hi All,
    I am using cProjects 4.0
    Under SPRO, I get to "cProjects > Basic Settings > Forms for Printing and Project Status Report".
    Please list out the sequence of activities to enable me get and use Project Status Report from the front end. A detailed response would be highly appreciated.
    I tried a few things which aren't quite working
    Thanks very much.

    Hi Bittu,
    Go to SPRO
    -> cProjects->Basic settings->Templates for Printing and for Project Status->Create Temples and then Activate Templates per Project type
    After the above settings are done, the Project status report from the front end is enabled and you can view them in cProjects.
    Wish you much success.
    Bye Dudle

  • Rman consolidated backup status report

    Hi,
    I am trying to write a script which collects the backup status report from all specified servers and all databases in each server. So if i run from one server, it should log on to all servers and get database reports.
    I think, i need select from rman view's.....
    sample output
    "DB INCR 0" dbname_server Compl: 2010-12-04 12:56 Length: 0 hr Age: .77 days
    "ARCHIVELOG" dbname_server Compl: 2010-12-05 03:04 Length: 0 hr Age: .18 days
    Any help is apprecieated
    Edited by: 812261 on Dec 8, 2010 12:44 PM

    992762 wrote:
    hi 812261,
    I'm also in need of a similar report, can u pls share the script that you have(perl). this would be highly helpful for me.Did you notice that you were responding to a two year old thread?
    Did you read Dan's comments regarding a catlog?
    >
    u can email that to <snip>
    thanks,I've snipped out your email address in my reply. I suggest you do the same in your own post. That is unless you actually enjoy the offers to help move money out of Nigeria, and to purchase certain, umh, "enhancement" products. Putting your email address on a public forum does nothing but expose it to every spambot crawler on the planet.
    Edited by: EdStevens on Mar 22, 2013 3:20 PM

Maybe you are looking for

  • Differences between MPEG2 and H264

    I have just purchased a HD PVR to record HD from the TV.  A bonus is that it connects to our wireless network and I can view and play files on my PC (which is in another room).  I have an HD video camera but usually render the output to DVD PAL so I

  • How to use search option using TREX.

    How can i have a search option in the portal page where in a user types for some keyword and the results are displayed accordingly. Thanks Shreya....

  • XML validation in WS adapter

    Hi experts, I get the following error message in SXMB_MONI while processing a message through a WS sender adapter: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!-- Error Message --> <n0:Fault xmlns:n0="http://schemas.xmlsoap.org/soap/enve

  • How do I stream while I am on an airplane...for the Superbowl? I have a Mac laptop OSX 10.7.5

    How do I stream while I am on an airplane...for the Superbowl? I have a Mac laptop OSX 10.7.5

  • So very confused... HELP PLEASE

    Hey everyone, I'm having a rather irritating problem. I had the MobileMe trial for a while, and it just expired. I had it set to automatically sync my bookmarks and all that stuff.. Now for some reason -- related to mobileme or not -- once the trial