Making MacOS report its IP via email on startup

Hello...
I am the family tech support guy and 'manage' about 5 machines all over the place using Apple Remote Desktop 3. Now, since these machines get dynamic IPs, I whipped up a little applescript that would tell me the machine's LAN IP and the WAN IP. Here it is:
~*~
set theData12 to do shell script "ifconfig | grep \"inet\" | tail -1"
set j to the offset of "inet" in theData12
set k to the offset of "netmask" in theData12
set theIPLocal to (characters (j + 5) thru (k - 2) of theData12) as string
set theData14 to do shell script "curl -l \"http://whatsmyip.islayer.net/\""
set finaloutput to "LAN IP: " & theIPLocal & return & "WAN IP: " & theData14 as string
do shell script "echo " & finaloutput & " | mail -s 'IPSender Alert' [email protected]"
~*~
I've set it as the login item, and it runs, but for some reason, I'm not getting the email. It doesn't seem like it's going out even. Could it be that the ISP is blocking local SMTP communications?
Any advice or workaround are much appreciated!
Thanks

I'm guessing the problem is that you can't mail from the command line at all, rather than a problem in your script.
By default mail is going to try to use the built-in mail server to deliver mail. Unless you've changed the configuration it is going to try to send mail directly to the mail server of the recipient's domain and the chances are that's going to get blocked since you're coming from a dynamic IP address.
If that's the case, the solution would be to configure postfix (the built in mail server) to relay through the respective ISP's mail server which should solve the problem.
Edit /etc/postfix/main.cf and look for the line:
#relayhost = [mailserver.isp.tld]
and change it - remove the leading # and enter your ISP's mail server in place of the [mailserver.isp.tld].

Similar Messages

  • PT61 - send Report Time Statement via email

    I have a question about Time Statement Report.
    Is there any change for send this report from PT61 to each person via email or is the only solution to create own report?
    Thank you,
    Mirko

    Hello Mirko;
    As far as I know there is no standard functionality for that.
    But you can read the results from cluster B2 and print it on smartform. And you can send this smartform via mail.
    Of course it will be a development and you will need assistance of an abaper.
    Regards,
    Okan

  • RSVTPROT report output send via email

    Hi Experts,
    Are there any means of sending the report of RSVTPROT through email? Is this feature included in the standard program? Thanks a lot!
    Best Regards,
    Kurtt

    Hi,
    I hope the below link can help you.
    Send the Report output to email from spool
    Thanks,
    Khushboo.

  • Automatically generating reports and sending via email...

    How do you create a background job to automatically, periodically run a specific report that will generate a spreadsheet that can be emailed to various personnel?

    Answer - Use the Broadcast funtionality under the "Business Analytics" tab.

  • Pushing reports to user via email

    Hi,My users would like to have an alert system, which runs a report on Essbase, e.g. daily, and if the sales is below certain threshold, it sends the report or some kind of alert messages to user's email.Would either Analyzer or Essbase offer this capability? If so, how? I couldn't find it anywhere in the documentation. Are there any tools which offers this capability?Thanks in advance for any response.Sam

    You could do it in Excel with a VBA programme to run a retrieve and send an e-mail from within Excel (using Workbook.SendMail) depending on the result. Make the VBA code automatically on opening the sheet, and set up a scheduled task to open the workbook at a particular time.I do similar stuff for overnight processing.

  • Send report via email as xls file.

    Hello from Spain,
    Sorry if this is not the correct forum. It's both a forms and reports question, but I think it fits better in the reports forum. I have queried into the forums for similar questions and found some threads without any replies around this same issue. I wish I am lucky today.
    I have developed some web forms which generate pdf and txt reports. The latter ones make use of desformat=delimiteddata when calling the reports. They run fine. I have also developed one form which suscribes those reports to email addresses. To do so, I am setting those email addresses in the DESNAME reports parameter and setting DESTYPE parameter as MAIL. They arrive as an attachment with pdf or txt extensions.
    Now, I am required to deliver those reports as xls files. I have been reading that desformat=spreadsheet would allow me to do so (as well as formatting the reports and make them look "cuter" than by using just delimiteddata), but have been unable to do it so far. When setting desformat=spreadsheet, reports are sent via email as html attachments, and when they are opened they look awful. Is there any way I can do this? It shouldn't be a too big deal, but I feel completely unable.
    Thank you,
    Fernando G.

    Hi,
    Please check the following forum thread that may help --> Re: Generate report in Excel and send to user via email.
    Thanks, RZ

  • LMS3.2 Syslog reports very slow when send via email

    Hello,
    we have ~5000 devices in LMS3.2 and we have a problem with syslog reports.
    When I create a "severity level summary report" for 5000 devices for the last 24hours and select as run type "immediate" it needs ~2-3 minutes. That's ok.
    But when I create exactly the same report and select the run type "once" , it needs ~3 hours. ("Once" means that the report is send via email after it's finished).  It happens with report type "pdf" and "csv".
    What can be the problem ?  Or is it usual ???
    Regards
    Hendrik

    The scheduled reports can output a full list of messages where as the immediate reports output a limit of 10,000 records.  If you have a lot of syslog messages, it can take a considerable amount of additional time to generate a full report.

  • I have recently bought my Mac mini ( July 12) and have already requested my free update code for mountain lion, got a reference nr, but I still haven't received a code via email to update? Its been 12 days. Any advice?

    I have recently bought my Mac mini ( July 12) and have already requested my free update code for mountain lion, got a reference nr, but I still haven't received a code via email to update with? Its been 12 days. Any advice?

    I am still in the return window but i really do not want to return my mac as i know it has the ability to do what i want, my problem is just finding the software that will work as i know there has been a lot of complications with OS X Mountain Lion with softwares that caim to be compatible but then later turn out not to be.
    I have been a windows user for years and this is really my first mac but apart from the hole software issue i find the mac 10x better than any windows computer i have ever used. For example i bought a HP laptop 4 weeks ago and has nothing but problems. At first the fans stopped working and making weird noises and then it began switching off when ever it felt like it and freezing like mad when i was trying to access the smallest program. I have found that now a days you dont get what you pay for with Windows especially since Windows 8 was released. Also Laptops such as HP now are just crammed with cheap parts, they dont take pride in their systems like they once used to unlike Apple. I know i will get more than a year or 2 out my mac (hopefully a lot more) but with windows systems it just seems to break all the time costing more money on extending warrantys. Also i like mac because i dont need to send it away if i ever get a problem, i can just take it into the apple shop half a mile down the road and they will fix it in store. Where as with windows i am waiting 2 weeks+ to just hear back from them.

  • Bursting Reports via email with seperate email address for each page

    I have been reading "Oracle® Application Server Reports Services Publishing Reports to the Web" (most specifically chapter 15 Creating Advanced Distributions) trying to figure this out but still having difficulty getting my head around it.
    I am trying to email invoices when applicable. Here is the "perfect world scenario".
    Report is scheduled to run once a day.
    Any qualifying invoices are picked up in the run.
    If there is an email address associated with the record the invoice is sent via email. (email address would be included on report and variable)
    If no email address is associated, the invoice is printed.
    There could/would be several different invoices on a single run.
    Does this mean I have to write dynamically write a distribution.xml file for each run or can I pass the email address as a variable to the distribution.xml?
    (builder version 10.1.2.0.2)
    bump
    Edited by: sdortch on May 21, 2009 9:09 AM

    Hi !
    You're able to use Report-Variables (e.g. from a Group in the Data Model) in the distribution.xml-File to send email to different adresses.
    Just bear in mind that you also need to set the "repeat-on" Property of the relevant layout section and use a "foreach"-Loop in the distribution.xml.
    So, no, no "dynamic" building of xml-Files necessary (though we do it at times...).
    See also "Publishing Reports to the web" for a complete reference on "burst distribution" and the components of the distribution.xml
    I would, however, run the report twice, once for "all email-invoices" with email-distribution file, once for "all invoices w/o email-adress" with (probably) printer-distribution file, as "exception" handling inside a distribution.xml could be a bit awkward...
    Cheers,
    Jens Rettig

  • Send report Via Email in HTML format

    hi,
    i am using forms 6.0
    I want to send my report Via Email to an email address in HTML Farmat.i want to set destination property at run time retriving from database. (mean without giving any runtime parameter manually)Plz tell me how i can do that i am working in windows environment.
    Waiting 4 ur reply.
    Thanx in advance.
    Zahid Raj.

    Zahid,
    reports6i sends mails where the Report itself is attached as a file in the format you specified. The support for sending a report as part of the HTML mail body is provided in Reports9i.
    Frank

  • How to create an excel report and send it via email using a BPEL process ?

    Hi Experts,
    I have a requirement to develop a xl report based the data in the DB table. I will have to query the list of records entered / processed during previous day, generated the xl based report and send to users via email.
    I talked to one the experts, he asked me to use the following Adapter and BPEL activities to accomplish it.
                   DBAdapter --> {BPEL  process} --> Java Embedding --> Email Activity.
    Can someone please help me to pass the information retrieved by DBAdapter to Java Embedding and then to email import? I have created DBAdapter and Java Embedding. I don't know, how to retrieve the data read / sent by DBAdapter using Java Embedding. Also please help me to pass the xl attachment to Email Activity.
    Thanks for your help in advance!
    Thanks,
    Harisudhan Selvaraj

    I would suggest something like:
    DBAdapter --> Bpel Process --> File Adapter --> write file to location (you can write in csv which can be imported into xls)
    Read Location --> FileAdapter --> Bpel Process --> Email Activity
    Regards,
    Anshul

  • Automatic scheduling of report and send the output  to user via email

    Good Morning,
    Please i need to scheduled report and send the output via email in Discoverer . Please can someone assist in how to achieve this ?

    Hi,
    You cannot schedule and email a Discoverer report using standard Discoverer scheduling. You have to use a third party scheduler and Discoverer Desktop running on a windows PC.
    This presentation has some more details on how to do this.
    Rod West

  • Want to send report Via Email

    hi,
    i am using forms 6.0
    I want to send my report Via Email to an email address in HTML Farmat.i want to set destination property at run time retriving from database. (mean without giving any runtime parameter manually)Plz tell me how i can do that i am working in windows environment.
    Waiting 4 ur reply.
    Thanx in advance.
    Zahid Raj.

    Hi Zahid
    From Forms 6.0, you need to call Reports using standard SRW.Run_Product call. Please refer to the product document for other SRw calls which can be used for Forms/Reports integration. In this SRW call, you need to sent the runtime argument to Reports. In your case, write a pl/sql code which would set the destype=mail, desformat=html and desname set to the email address for reciever which you would be fetching from DB in Forms application. And then send these arguments in the SRW call to run the Reports.
    Thanks
    Rohit
    Thanks
    Rohit

  • Broadcasting Bex Report via email

    Hi
    I just want to know how can we broadcast Bex report from EP Portal to Email. 
    When I execute a Bex report, upon rt click I get to see Broadcast and Export Option.
    Can anybody explains me in detail how can we broadcast a Bex Query via email.
    Please explain me in detail how we make setting at Portal End, in BI.
    Is standard templates say 0analy.. is something to do with all these. like if I want to add a new feature in the Broadcast and Export setting say Export to Excel 2000.
    Regards,
    Yaseen
    Edited by: Yaseen Ahmed on Aug 18, 2009 9:03 PM

    Hi....
    You can use ABAP program RSRD_BORADCAST_STARTER with the variant value set to Broadcaster Technical Name.
    for more info : [Bex Broadcast creation user - best or common practice;
    Regards,
    Chintan

  • Report's HTML ouput via Email

    Hi falks!
    We are facing the issue that when we try to send a report via Email in HTML format it does not export table borders. Any idea about this issue?
    Any help will be appreciated!
    Thanks for your time.
    Regards,
    Ariel

    Thanks for your response.
    The customer has updated with the following:
    The problem here is the standard program "IBY_FD_SRA_FORMAT module: Send Separate Remittance Advices" sets the output type to HTML if the remittance advice delivery method is "MAIL". Below is the extract from the log file of the program "IBY_FD_SRA_FORMAT module: Send Separate Remittance Advices"
    ******** EXTRACT BEGIN ********
    Since the delivery method is EMAIL, the XML Publisher output type is set to be html.
    ********* EXTRACT END *********
    This causes the following issue: -
    The concurrent program ends without generating a pdf output and hence cannot be emailed out as a pdf document.
    Action required from you: -
    [1] Ensure that the standard program does not default the output type to HTML for email. This should be PDF instead.
    [2] Ensure that IBY XDO Delivery, sends the PDF output as an attachment.

Maybe you are looking for

  • CP and BP is not being created in E-Recruitment after PFAL

    Dear Experts, I need your valuable insight into the below issue: We are implementing SAP E-Recruitment in our company and we have a stand alone system for e-rec, i.e. I2-B scenario. Release 604.  We defined the process model, filter groups as describ

  • NWDS not showing keywords

    Hi xperts, As you know, when we type in any keyword in NWDS it gets highlighted with different font /color. But in my system, when I type keywords like if, try, catch; it simply disappears. I have reinstalled every thing (right from java) but the pro

  • OSB Error codes

    What OSB error codes,I have to handle in the error handler stage when a route node finds that the given end point is not available and also when the end system is timing out. Is it BEA-38000? Thanks.

  • Public Transactional Iview

    Hi all, I have a Public Portal, and I want to put there a Transactional Iview, but the thing is my ECC is not public, so I'm getting error, because the client cannot find the Transactional Iview. Is that ok? I think the client should see the Iview, a

  • When I launch FF (Linux Mint 14) a Mozilla Firefox 2 page is launched. How do I prevent this?

    A 2nd FF page is launched when I start FF. When i close FF I have to close the "Mozilla Firefox <2>" page. How do I resolve this?