Script : checks if webpage changed with login:pass. Finished!

I need a .sh script to monitor a webpage and then notify me in conky if there is something new on the site. The site I need to monitor uses login and pass.
I know that there are great applications like specto for this. But I just want a simle .sh script. Not python! Don't want to use python!
I've found 1 but can't figure it out. This is all new to me. Plus it doesn't use login:pass. And it doesn't work for me
#!/usr/bin/env bash
url = "http://www.google.com"
checkfile = "~/pagecheck.md5"
email = "[email protected]"
savefile = "/dev/null"
[ -f ./pagecheck ] \
(diff $(wget -O $savefile $url | md5sum) $checkfile) && mail -s "UPDATED: $url" $email) \
|| \
(wget -O $savefile $url | md5sum > $checkfile)
Does anyone know a good script I could use?
Last edited by Ventil1 (2010-03-21 22:26:09)

Thanks for the help guys. But like I said... This is new to me. I am not a programer. I don't even understand half the stuff you guys said.
I need it similar to this. I mean the if else part.
checkgmail.sh | How to make conky+checkgmail.sh to play .wav file? [Solved]
#!/bin/bash
gmail_login="myusername"
gmail_password="mypass"
nbmail="$(wget --secure-protocol=TLSv1 --timeout=3 -t 1 -q -O - \
https://${gmail_login}:${gmail_password}@mail.google.com/mail/feed/atom \
--no-check-certificate | grep 'fullcount' \
| sed -e 's/.*<fullcount>//;s/<\/fullcount>.*//' 2>/dev/null)"
if [ -z "$nbmail" ]; then
echo "Error"
else
if [ $nbmail != 0 ]; then
echo "$nbmail message(s)"
aplay ~/sounds/mail_here.wav
else
echo "$nbmail message(s)"
fi
fi
Pierre where do I put the login and pass?
# Maintainer: Pierre Schmitz <[email protected]>
pkgname=w3watch-git
pkgver=20090827
pkgrel=1
pkgdesc='Watch the web and get notified on updates'
arch=('any')
url='http://git.archlinux.de/w3watch/'
depends=('bash' 'lynx' 'awk' 'diffutils' 'coreutils' 'grep')
license=('GPL')
_gitroot='http://git.archlinux.de/~pierre/w3watch.git'
_gitname='w3watch'
build() {
cd ${srcdir}
msg 'Connecting to GIT server....'
if [ -d $_gitname ] ; then
pushd $_gitname && git pull origin
msg 'The local files are updated.'
popd
else
git clone $_gitroot
fi
msg 'GIT checkout done or server timeout'
msg 'Starting make...'
install -D -m755 "${_gitname}/w3watch" \
"${pkgdir}/usr/bin/w3watch"
install -D -m644 "${_gitname}/config.sample" \
"${pkgdir}/usr/share/doc/w3watch/config.sample"
Last edited by Ventil1 (2010-03-20 08:55:31)

Similar Messages

  • Script check the AD accounts without login 90 days and disable it only

    Dear All
    How to create a script to check the AD user accounts (windows 2008) without login 90  days and disable it.
    Regards
    PK

    Something like this should work (actually, it's probably better to use lastLogonTimeStamp, not lastLogon):
    Search-ADAccount -usersonly -accountinactive -timespan "90"
    After that you can either export them to a csv file or just delete them straight away. But remember about the recently created users issue.
    If you are looking into more advanced solution, I have got experience with Adaxes. here is an example of how to achieve what you want with it: http://www.adaxes.com/tutorials_AutomatingDailyTasks_AutomaticallyDeprovisionInactiveActiveDirectoryUsers.htm

  • Problem in sap script check printing with EPSON FX890 printer

    Hi
    I am trying to print a check through F-58 using a script.
    We have a new EPSON FX890 dot matrix printer, But when I fire a check the the formatting of the check is not proper. The alignment is never the same as given in the SAP script. this could a problem with the printer set up and configuration in SAP. Could anybody please give me some inputs on what needs to be done. its Urgent. Can anybody give me what needs to be done and also guide me with Print control commands in SAP scripts
    Thanks,

    Hi,
    Here is some steps you should follow for scripts printout.
    1. Validate the drivers used in SAP (Tcode SPAD)
    2. Are you printing through a print server or directly to the printer
    3. If it is througha print server like windows, you should validate to have the right driver installed for that printer.
    4. Validate on the printer the default setting. If the script doesn't sent the proper font or setup, it will print using the last setup sent to the printer.
    So if somebody used work and print a specific document with different setting, some time the setting stays for the SAP report.
    To validate the setup of the printer, just turn off and on the printer before sending the SAP form. That should help to see if the setup has been changed by another program.
    I hope those simple steps will help to solve your problem.
    Reward if helpfull...
    Cheers,
    Rakesh.

  • I am experiencing wireless connection problem on 4s after ios 8.1 upgrade. The wireless icon appears showing that it's connected but webpages do not load. I have checked my internet connection with other devices and seems to be alright. what to do?

    Hi
    I am experiencing wireless connection problem on 4s after ios 8.1 upgrade. The wireless icon appears showing that it's connected but webpages do not load. I have checked my internet connection with other devices and seems to be alright. what to do?
    I have tried reseting the network settings and forgetting my wireless connection and re-connecting to it. I even backed up my phone on itunes and restored it, factory reseted it. Nothing seems to work.
    Also after my upgrade to ios 8.1 my personal hotspot option under cellular data has disappeared.
    Would you please help me out? I would really appreciate it.

    Hi..
    Restart your router then restart the iPhone to test.
    If that doesn't help, try this support article >   iOS: Troubleshooting Wi-Fi networks and connections

  • Trying to change my region from uk to New Zealand but comes up with incomplete pass how can I get round this ?

    Trying to change my region from uk to New Zealand but comes up with incomplete pass how can I get round this ?

    Thanks for the Clarification...
    GlenieBoy wrote:
    ... method of payment is not valid in this iTunes Store as it's set to uk..?
    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...

  • HAs anybody noticed how the MAc Book Pro Login button function has changed with OSX 10.9?

    Has anybody noticed how the Mac Book Pro login button function has changed with OSX 10.9?

    No one in this forum will...  this is the Mac Pro forum

  • Change UUT serial Number with Single Pass in Batch model

    How do I change the UUT serial Numbers with Single Pass in Batch model ?
    I also like to change the UUT report path, so that each UUT saved in it's own directory.
    TIA
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

    the path to the UUT report can be configured in the report options.
    You can't specify unique path for each UUT in the report options.
    Both report path and UUT serial number are stored in the sequence context during execution. So if you want to know where those variables are located (in order to change their values during runtime), you can set a breakboint in your sequence, change to the variabels tab and do a search for the variables (you perharps have to play around a bit with the searchstring though).
    I've already find the place where TestStand holds the information.  The problem is that there is no proper callback I can override.
    I can only change the serial number in my sequence file.  But that is too late to include the serail number in the report file name.  The serial number inside the report does get changed.
    By the way, I can't change the process model.  User wants out of box batch model.
    Thanks for reply.
    George
    Message Edited by zou on 06-19-2008 08:40 AM
    Message Edited by zou on 06-19-2008 08:43 AM
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

  • How to change the login process

    Hi SDN,
    I've set up an Ecommerce 7.0 application with a B2B config. All is running an ok.
    I want to change the login process. We have userid's like 000005999999. In the LoginAction, i want to add this zeros before the id automatically so that the user can login with 5999999.
    My problem is that i don't find the Action which is performed after login.
    The form in the login.jsp looks like this:
    (Sorry i couln't post that code normally because SAP means thats cross site scripting. Remove spaces, then i looks normally)
    for /user/login there should be a forward at config.xml...but it isn't. No entry at config.xml and no entry at config_user.xml.
    Which Action is performed if i press the login button on login.jsp? Can someone help me please?
    Where can i change this Action to a Z_Action ?
    I think its the LoginAction.java... but where is it called? Where can i change the call to the Z_ class?
    For b2c it will be easy to find the LoginAction...there its defined in the config.xml... but at b2b... i really do not understand how that is working. Please help me with that problem.
    Thanks and best regards,
    Toni
    Edited by: Toni Flückiger on Apr 20, 2011 3:45 PM
    Edited by: Toni Flückiger on Apr 20, 2011 3:46 PM

    In web.xml  there is an init-param definition that maps as this:
    <init-param>
      <param-name>config/user</param-name>
      <param-value>/WEB-INF/config_user.xml</param-value>
    </init-param>
    So, all the forward name s with /user prefix  will be checked in the config_user.xml
    If you are trying to define a ZAction and would like to add /user prefix to the forward name, then you have to place it in the config_user.xml.
    Easwar Ram
    http://www.parxlns.com

  • Make a check box in LiveCycle with a personal character or image as check mark ( info to share...)

    Hello everybody,
    It makes now several weeks i go trough the different forums to find a way to make the check mark of a check box in LiveCycle with a personal color instead of the default black mark, that seems to be the only option available.
    I saw somebody else with that question, but no answer.
    So i found a work around, that make the check box really flexible.
    Here it is:
    REMEMBER that this will work only with forms saved as dynamic PDF.
    Open a new form in Livecycle.
    1) Open Library panel ( Shift+F12) and select Check Box and put it in the page with the dimension and position you like and select it.
    Open the Object panel ( Shift+F7), select field section and under Caption make it blank. Select Binding Section and under name write in ' CheckBox '. for the rest leave all the section values as they are.
    2) In Library select, in the standard section, the icon for making a text object. Put it in the page and size it to your needs and put it on the top of the CheckBox. Select it.
    In the Object Panel, Draw section and under Presence 'Visible'.
    Open the Font panel ( Shift+F4) and under font section, Font : select the Wingdings font and choose the symbol to use as the mark, under Size : the size you need, under Style: font color you like. If the result of the mark is to your feel, set the object to 'invisible'. Leave all other values as they are.
    Open the Hierarchy panel (Shift+F11), right click on the static object and rename it to ' CheckMarkModel ' .
    For information : changing the text object to an image object let's you use an image for the mark in the checkbox.
    3) In Library, select in the standard section the icon for making a Button. Put it in the page and size it to the CheckBox dimension and put it on the top of the text object. Select it. In the Object panel, under Caption : make it blank, under Appearance : select custom in the drop down list an in the dialog box that comes up set the edges to none and the
    background to none. Leave the rest as it is.
    Open the Hierarchy panel (Shift+F11), right click on the Button object and rename it to ' ClickCheckBoxButton ' .
    Now open the Script Editor (Shift+Ctrl+F5), on the left under Show : select in the list the ' Click ' event, under Language : select JavaScript, copy to the window the following script :
    if (CheckMarkOnOff.rawValue == "0")
    CheckMarkOnOff.rawValue = "1";
    CheckMarkModel.presence = "visible";
    else if (CheckMarkOnOff.rawValue == "1")
    CheckMarkModel.presence = "invisible";
    CheckMarkOnOff.rawValue = "0";
    4)Now put in the page an other Check Box, put it on the top of the Button object and select it. In the Object panel, Field section, under Caption : make it blank, under Appearance : none, under Presence : invisible, let the rest as it is. In the Value section, under Type : Read Only, under Default : Off. In the Binding section, under Name : name it CheckMarkOnOff, leave the rest as it is.
    5) So you have now four objects in the page 1. In the Hierarchy panel set each object by dragging them in
    this order :
    CheckBox
    CheckMarkModel
    ClickCheckBoxButton
    CheckMarkOnOff
    In the form select all the objects and group them. If you copy the group as many times you need you automatically will have an other Check Box, ready to work.
    So here you are with an personal Check Box.
    Don't forget to set the preview PDF to dynamic under Menu /File/Form Properties, the in the dialog box that shows up /Default tab and under the XDP Preview format : select in the list an Acrobat Dynamic form.
    REMEMBER that this will work only with forms saved as dynamic PDF.
    If somebody from Adobe could upload the sample file i made, to the forum, so that anybody can download it to his computer, would be appreciated, email me at : [email protected] .
    Regards Mike.

    I also faced this same problem and there is an actual solution but it involves modifying the xml source for the checkbox - however it is a simple modification so if your not familiar with editing the xml source don't worry about that. <br /><br />Click on the checkbox you want to modify and then click on the XML Source tab. LiveCycle will take you to that point in the XML. <br /><br />Now, scroll down until the close of the ui node( </ui> )within the checkbox field and modify the font node to look like the following:<br /><br /></ui>  -- close of UI node<br /><font typeface="Arial"><br />   <fill><br />      <color value="0,0,255"/><br />   </fill><br /></font><br /><br />This produces a checkbox with a blue check mark. <br />You can, of course, make the color any RGB number you want.<br /><br />You can then save that field in your library and reuse it anytime you want and it will always have that color checkmark. <br /><br />Good luck. <br />-Andrew

  • Macbook Pro late 2013 - problem with login screen resolution

    Hi,
    I've got problem with login screen resolution, after upgrade to Yosemite. I use the 4rd resolution (last one) on my Mac Pro (late 2013), and after restart login screen is always on optimum mode... But it's only about the login screen.
    Do you know how can I fix it? I would like to have the same resolution on every screen.
    thx in advance

    I  Reformatted the CF card  on the new computer   it works fine now on the new Mac Pro
    Interesting point about  the low power  of the usb ports   I had to deal with all devices ejecting them selves  when the mac pro  was idle or slept  Drobo needed a Firmware update and another drives  needed  me  to change the sleep setting  or the Mac Pro   to never and  i also  had to deploy a  script to write to each device  ever minute,   this  kind  of sold the problem  with external Hard drives.   I wonder if the lowering  power  to a CF card   can eject  it  in a manor  which would make the  computer  think it is corrupt.
    I have looked at  buying a power usb Hub    but seems only one or two  of the ports are powered. 
    Seems to be a bit problem with the mac pro especially  as everything has to be connected externally  
    Will assume the Firewire Connector does not work.

  • Trouble with login password in Keychain Access

    Since upgrading to Snow Leopard, my "Login Password" seems to have changed. Not my account password, thankfully, but the Keychain Access Login Password that enables me to access my Login Keychain. I certainly did not change it, but the password I used in 10.5.8 doesn't work anymore. This has actually happened on two different machines
    I tried the 'First Aid' function in Keychain Access and got this error message:
    Checked password for ~/Library/Keychains/login.keychain
    *Password for ~/Library/Keychains/login.keychain is not the same as login password*, so keychain can't be unlocked automatically
    Login password could not be synchronized with keychain ~/Library/Keychains/login.keychain (-128)
    Unable to read settings for ~/Library/Keychains/login.keychain
    Okay, so how can the Password for the Login Keychain be different from the, uh, Login Password?!?!
    Is there any way to reset a Login Password, or do I just have to start a new one from scratch (really don't want to have to do that)?

    the password for any keychain can be set to anything you want. by default the password for you login keychain is set to be the same as you account password but that's done just for your convenience so that it can be unlocked automatically when you log in. those passwords are completely independent otherwise. changing one has no effect on the other. that said, unless you changed the account password or the keychain password yourself what you are seeing should not be happening.
    did you change your account password? if not your keychain could be corrupt.
    in Keychain Access is your login keychain locked? if it is select it and click on the lock above. if the keychain works ok it should ask you for the keychain password to unlock it. does it work?

  • Help req for check customer table maintenance with XD02 if not throw error

    hello ABAP GURUS,
    check customer of the table maintenance with XD02 if not throw error i have given the codition for passing the values in the table but before that it has to check whether the customer i am passing in to the table is a customer from xd02.Here whatever no i am passing it is accepting it should not happen, but when i give the customer which is not a customer it should not accept but it has to throw the message as 'customer does not exist.Its urgent please help me
    TYPES: BEGIN OF TY_KNVI,
    KUNNR TYPE KUNNR,
    TATYP TYPE TATYP,
    TAXKD TYPE TAKLD,
    END OF TY_KNVI.
    DATA : VALIDFROM TYPE GUEBG,
    VALIDTO TYPE GUEEN.
    DATA : IT_KNVI TYPE STANDARD TABLE OF TY_KNVI,
    WA_KNVI TYPE TY_KNVI OCCURS 0 WITH HEADER LINE.
    DATA : V_NAME TYPE SYUNAME.
    SELECT KUNNR
    TATYP
    TAXKD
    FROM KNVI
    INTO TABLE WA_KNVI
    WHERE KUNNR = YYV_CFORM-KUNNR
    AND TATYP = 'ZCST'
    AND TAXKD = '1'.
    V_NAME = SY-UNAME.
    YYV_CFORM-ENTEREDBY = V_NAME.
    IF SY-SUBRC NE 0.
    MESSAGE E000(E4) WITH 'Please change the tax classification of ZCST as' '1' ', in Sales Area Data'.
    ENDIF.
    I have used the following code to enter the data into the table maintenance it is working fine and throwing the error when the tax type is not the one which i have given in the select statements but the problem is when i have given the customer no which is not there in the XD02 tcode, it is accepting and showing the error message as MESSAGE E000(E4) WITH 'Please change the tax classification of ZCST as' '1' ', in Sales Area Data'. now i have to check the customer no from XD02 and if it is existing in that tcode it should allow to save in the table maintenance otherwise throw a message as the 'Customer no does not exist, this I am unable to write so how can i check please help me .
    thankx in advance.
    Edited by: soni khadary on Apr 22, 2008 7:55 AM

    Hi Kelly,
    I guess <wa_tab>-handle_style is of type lvc_t_styl therefore you can do the following:
    ls_edit-style = cl_gui_alv_grid=>mc_style_enabled.
    "I assume you know your non-key fields' names so you can use subrotuine to perform update on each of them
    ls_edit-fieldname =  'First field name' .
    PERFORM update ls_edit.
    ls_edit-fieldname =  'Second field name'.
    PERFORM update ls_edit.
    ls_edit-fieldname = 'Third field name'.
    PERFORM update ls_edit
    FORM update USING fs_edit type lvc_s_styl.
    field-symbols: <style_tab> type lvc_t_styl,
                         <style_wa> type lvc_s_styl.
    LOOP AT <tab> ASSIGNING <wa_tab>.
       if e_row = sy-tabix .
         "get you style table
         assign component 'HANDLE_STYLE' of structure <wa_tab> to <style_tab>.
         "as <style_tab> is typed fully you can read the row you are interested in
         read table <style_tab> assigning <style_wa> with key fieldname = fs_edit-fieldname
         if sy-subrc = 0.
           "update this entry
            <style_wa> = fs_edit.
    *        modify table <style_tab> from <style_wa>. 
         endif.
       endif.
    endloop.
    endform.
    Note!
    Though, this should work, the use of RTTI as Uwe suggested would be best practise approach as far as dynamic programming is concerned. Anyhow it is still up to you which one you pick.
    Regards
    Marcin
    I noticed now that this line is not necessary
    modify table <style_tab> from <style_wa>. 
    as we simply are working with field symbols, so changes made to <style_wa> are already visible in that table <style_tab>.
    Edited by: Marcin Pciak on Mar 15, 2009 12:44 PM

  • SPA900 - AA script saved but no change on prompts

    I changed the AA scripts and saved the changes on my SPA9000. However, the Auto Attendant worked the same as the default script without any change when I called. For example, I changed the audio src to prompt2 or prompt3 and the welcome message was still prompt1 "“If you know your party’s extension, you may enter it now.” Any help will be very much appreciated.

    hi! if you dial AA from one of the SPA9xx phones on the network using the Menu button (under Directory>Corporate Directory) can you at least hear the AA prompts?  because if not, something is definitely wrong with the device already...reset it to factory default and make sure that you upgrade to the latest firmware... without changing the AA prompts, check first if you can hear the AA...then start again from there...
    | isolate! isolate! isolate! |

  • HELP!! Need a script for DUMMIES for a simple login/register feature

    I know very little html and am more of a designer, but my programmer has let me me down so I have to take this on myself.
    I want to include a very common feature where visitors register to my site, so I can collect some information and contact details from them, then they can access hidden pages of the site and receive some exclusive download links by email, allowing them to download content (only once). They can then login each time they visit with a userID or email and a password.
    My host supports almost every scripting language.
    I've been told PHP is what I need, but I know absolutley nothing about it. My host said there is templates for such a simple script out there on the net for free but I'm being passed from pillar to post with scripts for much more complicated and rarer scripts than I need.
    Hope you can help.
    LB

    Do I need to create a database to store users info first?
    Yes. Without a database, it won't work.
    Is this a basic html page with a table with lots and lots or rows and columns for each of the details they have entered (e.g Name, DOB, Address.....etc)??
    No, I'm afraid not. Dreamweaver's PHP server behaviors work in conjunction with the MySQL database. If your hosting company supports PHP, you will almost certainly have access to a MySQL database and phpMyAdmin, a web-based program that helps create and maintain MySQL databases. As a minimum, your users table in the database will need three columns:
    user_id (a number that acts as the primary key for each record)
    username
    password
    You can also have other columns to store other details, such as first name, family name, and any other information that you want to store.
    If you have never done any PHP or database development before, this is going to be a major undertaking for you. The Adobe Developer Centre has some articles that show you how to set up a PHP/MySQL testing environment (http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php.html) and create your first database-driven pages (http://www.adobe.com/devnet/dreamweaver/articles/php_event_registration.html). The Dreamweaver help files also step you through the process of creating a login system (http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WScbb6b82af5544594822510a94ae8d65-7883a .html).
    Working with PHP/MySQL isn't difficult, but there's a lot to absorb. If you're going to start working with login systems and other database-driven features, you might find it useful to take a look at one of my books about Dreamweaver and PHP. I have different editions for Dreamweaver 8, CS3, and CS4. You can find more details at my website (http://foundationphp.com/).
    Good luck.

  • In version 3.6 I can not open a website link from original page, I keep getting a new window that is blank and asking me to put in a web address. What has changed with the new version?

    When on a page if I click on a web link I get a new window that is blank and asks me enter a web address. This started happening with the new 3.6 version. It seems to have something to do with what I choose for the location in my privacy settings as the window changes with each setting but I still cannot get to the new site. Any ideas? I have no problem with this in IE and I have to keep opening IE when I encounter the problem on Firefox which is annoying.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

Maybe you are looking for

  • How can I transfer songs from my remote hard drive to the iphone?

    I have an external hard drive with my pc based music. I want to transfer songs to my iphone to play through PS3 and or my Home Theatre system receiver. How do I do this...I can not seem to connect or synch with Itunes? Thanks

  • STO Problem

    Hello, While creating STO order for intracompany process,i am facing error as 'Delivery type UL not allowed in purchase orders'. Why this message is coming?

  • Cant see my mail message

    I know there is a simple anwser to this but i cant find it . On my mail page I use to see the list of mail to the top and the one I had high lighted I would see on the bottom of the page. Well some thing happen and now I only see the list of mail unl

  • Flash froze and crashed computer

    I was playing a flash-based game when the game completely locked up my computer, and the only possible solution was to do a hard reboot (pressing and holding the power key). I waited and then restarted, but the screen had vertical and horizontal pixe

  • Why can't I view quicktime thumbnails on my pc windows xp?

    I have "view thumbnails" turned on in the options, but all I see are Quicktime icons rather than a frame of video. I had the capability to see thumbnails of video before, but they disappeared. How do I get them back? It is ten times harder to do vide