Check website for changes and send message

I maintain several websites for others and would like to use a script to check to see if any of the files have changed in the last day.  In other words, go to http://www.mysite.com and if the date modified property of the index.html file is equal to today, then send an email to me.  I'm familiar with AppleScript enough to send the email message but am kinda stuck on how to accomplish the checking the date modified aspect of the files on the remote Unix server.
Is this a job that AutomatorAppleScript should handle?  Or would something else be more effective?  Any help would be greatly appreciated.

I'd probably look to use RSS, if you're maintaining the web sites.  That's what an RSS feed is set up to do.
If you're looking at a web site that's based on a content-management system (CMS), those usually have RSS options or features available, and those also often have databases that can be queried.  Scraping is, well, ugly and resource-intensive, and best avoided.  But if you have to...
The following is mostly Terminal.app Unix-level stuff...
If you want to look at the lower level (the hard way), then a tool such as cURL would be one typical tool.
cURL is installed on OS X by default.
Flags:
  -z/--time-cond <date expression>|<file>
  -I, --head
rsync can provide a completely different approach here.  With rsync, you can synchronize a local cache of the files with those on the remote servers.
AppleScript is an excellent choice for scripting OS X GUI applications.  But if you're not doing that, then a bash script, or Python, php, or some other scripting tool or scripting language would probably be my choice; those are better suited to your particular task.  As for some of these other tools, Python has a pycurl library, php has a curl library, and bash can call the curl utility.  These are all web-centered languages, so poking around via HTTP is standard fare.  And each has other approaches available.   I'd expect there's a scraping library or three around, too.  This is hardly a new or unusual requirement.  There's the Python scrapy tool, for instance.
details: man curl, man rsync, or the available bash or Python or Perl documentation.  And bash scripting is cryptic, but it's a gonzo powerful tool.  Among the TLDP guides are an introduction and an advanced bash shell scripting guide.

Similar Messages

  • After Clicking Rejection(Enter and send message from portal )

    Hi
    I am able to allow user to enter rejection reasons using task TS20000139 (Enter and Send Message) when the user clicks the Reject button in SAP Gui. However when the user clicks Reject from the portal, the Enter and Send Message does not appear immediately. Instead it appears as a new task in the portal. Is there a way for the Enter and Send Message to appear immediately in the portal when the user clicks on the Reject button or any other task is there for Enter and Send Message supporting SAP portal...
    please let me know the solutions...
    Thanks
    ram

    Ram,
    the Advanced with Dialog works fine only in certain scenarios, as Jocelyn mentioned in the following thread. pl go thru' this.
    Extended Notification-Submethods and advance with dialog not supported...
    COming to your requirement, if you want to provide a box for the user to enter Rejection reason on the portal side, you can use the User decision Actiion Handlers as given in the below link. It is very simple and fast implementaion.
    I have done this recently, so if you need more details, let me know.
    But go thru' the following help.sap link on ACtion Handlers.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/7a/df014b037141ca9afc6433ed42b519/frameset.htm
    Hope this helps.
    Regards,
    venu

  • I'm unable to use Fiverr with Firefox. Last year I was able to order Fiverr gigs and send messages inside Fiverr but for the last 3 weeks I've been unable to.

    I'm unable to use Fiverr.com with Firefox. Last year I was able to order Fiverr gigs and send messages but for the last 3 weeks I've been unable to do either. I can login to Fiverr but I'm unable to use the service.
    I'm using Windows 7.

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • I need to get raw plugin for Canon 5D Mark iii for CS6  the adobe website has changed and I can not find the download.. it keeps looping me back to the product download

    I need to get raw plugin for Canon 5D Mark iii for CS6  the adobe website has changed and I can not find the download.. it keeps looping me back to the product download page without the raw

    Which operating system are you using?
    Have you tried Help>Updates from within photoshop cs6 to get either camera raw 8.3 or 8.7.1, which should enable photoshop cs6 to open the canon 5D Mark III files.
    (version of camera raw depends on your operating system)
    If that doesn't work try one of the following camera raw plugin installers:
    Camera raw 8.7.1 plugin
    https://helpx.adobe.com/x-productkb/multi/camera-raw-plug-in-installer.html
    If you have windows xp or vista or mac os x snow leopard (10.6.8), then you'll have to use the camera raw 8.3 plugin installer:
    https://helpx.adobe.com/x-productkb/multi/camera-raw-84-support-policy.html

  • My iPhone no longer gives me audible alerts for email and text messages.  Just stopped. Help.

    My iPhone just stopped giving me audible notifications for email and text messages.  It still rings for calls.  I have checked the settings for "Sounds" and they have not changed.  However, in these settings when I try to change the sound I get only the vibration and not the sample sound.  Can anyone help?

    Hi Midwestboy,
    If your iPhone isn't being recognized by iTunes on your Windows machine, you may find the following article helpful:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Regards,
    - Brenden

  • Enter and send message from portal

    Hi
    I am able to allow user to enter rejection reasons using task TS20000139 (Enter and Send Message) when the user clicks the Reject button in SAP Gui. However when the user clicks Reject from the portal, the Enter and Send Message does not appear immediately. Instead it appears as a new task in the portal. Is there a way for the Enter and Send Message to appear immediately in the portal when the user clicks on the Reject button ?

    Hi Ronaldo,
    Also, as Jocelyn says...
    <i>Hi folks,
    Actually advance with dialog will work under some specific scenarios from the UWL.
    1. If you are launching work items using WinGUI.
    2. If you are launching work items using SAPGUI for HTML and are on a high enough release .
    In other words, it depends on the launch mechanism - not the UWL.</i>
    Try checking the launch mechanisms.
    Regards
    <i><b>Raja Sekhar</b></i>

  • Can u tell me any predefined BAPI for change and creation of Material

    Hi,
        Can anybody tell me  predefined BAPI for change and creation of Materialmasterand Pricing?
    Thanks & regards,
    Gopianne.

    you can use the BAPI to BAPI_MATERIAL_SAVEDATA create as well as to change material master.
    When changing material master data, you need enter only the material
    number.
    In the header data, you must select at least one view for which data is
    to be created. Depending on the view selected, you must maintain other
    required parameters. If you do not enter values for all of the required
    parameters, the method is ended with an error message.
    The corresponding fields in the tables (such as CLIENTDATA) must first
    be supplied with data by the calling program. An indicator must also be
    set for each of these fields so that the data is written to the database
    by the method. This requires the calling program to supply the
    corresponding field with the indicator in a checkbox table (for example,
    CLIENTDATAX). Checkbox tables exist for tables that do not contain any
    language-dependent texts (MAKT, MLTX), International Article Numbers
    (MEAN), or tax classifications (MLAN). Several data records for a
    material can be created in these tables.
    regards
    vivek
    reward points if it helps

  • I accidentally downloaded a website for coupons and its toolbar keeps popping up? I want to completely get rid of it on my internet. How do I do this?

    I accidentally downloaded a website for coupons and its toolbar keeps popping up at the top of my internet window. I went to the toolbar options and unchecked it but when I get back into the internet it is up again. I want it completely gone so that it doesn't even have a chance to be seen. I don't want it. How do I get rid of it?

    I would start off with Firefox's Add-ons page. Either:
    * Ctrl+Shift+a
    * orange Firefox button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then look for unwanted extensions and try the Remove button.
    If the Remove button is missing, this usually means the extension was installed through the Windows installer. In that case, check for it in the Windows Control Panel, Uninstall a Program. Clicking the "Installed on" column header will bring the most recent additions to the top for easier spotting.
    After you get rid of it, assuming you can remove it in one of those two ways, I suggest "mopping up" with some malware removers. This article lists tools that other Firefox users have found helpful: [[Troubleshoot Firefox issues caused by malware]].
    Any luck?

  • Is it possible to play different sounds for emails and instant messages ?

    Hello,
    I was wondering if it was possible to play different sounds for emails and instant messages. I am using Thunderbird quite often with both emails and instant messages imported from Gtalk.
    I think it would be very convenient to be able to distinguish both sounds as they do not imply the same things.
    Thank you very much.
    Olivier Hubert.

    There are only six chat add-ons, three of them are about notifications. Pick one you think will do the job for you. https://addons.mozilla.org/en-US/thunderbird/extensions/chat/?sort=popular

  • Hi This is Rezwan from Bangladesh. I requests to my aunty who lives in Virginia to buy an iphone 5s country unlocked for me and send to Bangladesh. Now i want to know the total costing of iphone 5s country unlocked phone and how can she send it to BD?

    Hi This is Rezwan from Bangladesh. I requests to my aunty who lives in Virginia to buy an iphone 5s country unlocked (Without Contract) for me and send to Bangladesh. Now i want to know the total costing of iphone 5s country unlocked phone and how can she send it to Bangladesh?

    Note: When you buy an iPhone from another country, you do not have warranty in your country of residence. Any warranty and sevices are only valid in country of purchase.
    For prices, ask your aunty or go online yourself.

  • ı wanna delete my purcahe but it did hide and where is the hidding ı wanna delete my purchase please because I am not looking a few purchase (dowloaded at the apple store) help me and send message to my email thank you have good work.

    ı wanna delete my purchase but it did hide and where is the hidding ı wanna delete my purchase please because I am not looking a few purchase (dowloaded at the apple store) help me and send message to my email thank you have good work.

    what?

  • Way to receive and send Messages.......................

    Hello All!
    Is there a Way to receive and send Messages with attachments From Forms 6i?
    Could you give us one actual example i really cant understand this how to do this through forms?
    Arona

    What kind of messages? If you are referring to email, then if you search this forum, you will find many threads. Here are a few:
    Sending email with a pdf attachment
    email attachment
    Re: CLIENT_OLE2 and Outlook to send an email..

  • I have activated the genius for Ipad and the message that It was a success never disappears . It is impossible to access the itunes or apple store. What can I do?

    I have activated the genius for Ipad and the message that It was a success never disappears . It is impossible to access the itunes or apple store. What can I do?

    You have encounter Activation Lock, the antitheft feature of the iPhone. The previous owner did not remove the phone from their account. The phone cannot be used until they do. Return to the store and let them sort this out. It is very unusual for someone to "forget" to disable activation lock, as it is necessary to do so to erase personal information on the phone. So it is quite likely you bought a stolen phone.

  • I could not install the upgrade for iTunes and Error message said "can't start because MSVCR80.dll is missing" Reinstallling has not helped. Is it Apple's fault?

    I could not install the upgrade for iTunes and Error Message said " Can't start because MSVCR80.dll is missing". Reinstalling has NOT helped. . Is the fault with the Apple iTunes upgrade?

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.

  • When will the bluetooth support audio alerts for email and text messages?

    When will the bluetooth support audio alerts for email and text messages? It works when I get a phone call, but I'd like it to work when getting a text message (I do this a lot in noisier areas and would rather not have to look at the phone every few minutes)
    Or is there a configuration option I'm missing?

    Answered in this thread:
    http://forums.adobe.com/thread/1393642?tstart=0

Maybe you are looking for

  • How to add Adobe Connet training to my ADOBE Meeting acount

    I use Adobe Connet meeting an account for  3 years now . I'm very pleased. I plan to use an Adobe Connet Training but want to keep all the users of my business meetings. I have many users from my account and I want to keep everyone. I have visited al

  • Dvd writer is not working

    i have a problem in my laptop compaq presario c 300, that my dvd writer is not able to play dvd  movie even it did not read also

  • Single Server DHCP environment - redundancy question

    I have a single 2012 R2 Server, running as Host.  Host has Hyper-V services only.  Single Guest, running Server 2012 R2, as Domain, FS, DHCP, DNS.  Small shop, 20 workstations.  IP served from DHCP to clients.  If server dies, I have no internet acce

  • Saxon: recovery policy via Java API? (avoid "Ambiguous rule match" error)

    When I switch the XMLTransformer from the Java built in Xalan to Saxon (9), I get many Ambiguous rule match for / Matches both "document-node()" on line 22 of file:/D:/Tmp/test/layouts/lay_Client_T_SM_Notes_2C.xsl and "document-node()" on line 6 of f

  • Show BLOB icon based on file type?

    I have a report which shows BLOB file types as thumbnails. You click on the icon and the file pops up in its own window. This is all based on the How-To docs for APEX on OTN. That said, when the blob is an image, the icon shows up as a small preview