The Archives

  • 14.Aug.13
    Mirroring a site shell | fernape | (0)
    I recently had to mirror a website to make a backup. I found this very useful (though not perfect) wget -mk Hope it helps
  • 27.Mar.10
    Downloading a file with wget through a specific interface network | rafacas | (0)
    Sometimes I need to download a file from a computer with multiple net interfaces, but only one is connected to the Internet. In these cases I use the bind-address option of the wget command, which binds the connection to the address specified in the local machine. $ wget --bind-address= \ > --2010-03-27 12:25:56-- => `ppp-2.4.4-11.fc11.src.rpm.1' Resolving Connecting to||:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD /vol/rzm1/linux-fedora-secondary/development/source/SRPMS ... done. ==> SIZE ppp-2.4.4-11.fc11.src.rpm ... 724348 ==> ...
  • 14.Feb.09
    Is your site up? scripts | rafacas | (0)
    When I cannot reach one of my sites, I do not know if it is my problem, my ISP's or my hosting provider's. This is why I use the service down for everyone or just me. I have written a simple script which uses that service. Its usage is: $ ./ is up and the script is: #!/bin/bash # # 2009 - Rafa Casado - numargs=$# if [ $numargs -ne 1 ] then echo "Usage: $0 domain" echo "Ex: $0" exit 1 fi DOMAIN=$1 IS_UP=`wget -nv -O ...
  • 02.Feb.09
    Currency conversion script scripts | rafacas | (1)
    In this time of crisis perhaps we need to pay more attention to financial issues. I am interested in converting some currencies so I have written a script that given two currencies, converts on to the other. The script searches the info on Google Finance's page. An example of its usage is: $ ./ EUR USD 1 EUR = 1.316 USD The available currencies are: EUR - Euros USD - United State Dollar GBP - British Pound JPY - Japanese Yen CHF - Swiss Franc CAD - Canadian Dollar AUD - Australian Dollar INR - Indian ...