|
|
Top: lottalinuxlinks.com: The Weblog
blog feed |
podcast feed |
ogg feed |
forum
|
lottalinuxlinks cafepress store
|
Sun, 06 Aug 2006
latest (0.3.0-beta3) pcmanfm for ubuntu posted 23:32 [/computers/linux/foss/pcmanfm] permanent link More code (wget example this time) referred to in podcast 17 #!/bin/bash cd /home/username/Newspaper/; wget -r -nc -nd -A pdf -R html -I content/print/front_pdf -X content/print/multimedia,content/print/ni*content/print/spor*,content/print/pol*,story* http://www.newsobserver.com; rm ./robots.txt; mv ./1-A*.pdf nofp.pdf; kpdf ./nofp.pdf exit 0
This can be run from a cron job to get the front page pdf file http://www.newsobserver.com/content/print/front_pdf/1-A-Tue-August-1-06.pdf where 1-A-Tue-August-1-06.pdf changes name daily. posted 15:34 [/podcast/shownotes] permanent link Code referred to in podcast 17 Assumptions made in this example: 2424 is the alternate port number, and public key has already generated and exchanged with remote computer. Substitute username with your username, substitute backup_computer_name with the name of the remote computer you are backing up to, and substitute /stuff/backup/ with the directory path on the remote computer where you will be storing the backups. #!/bin/bash # example backup script tar zcf - /etc/apache/ | ssh -p2424 backup_computer_name "cd /stuff/backup;cat > apache.tgz"; tar zcf - /home/username/bin/ | ssh -p2424 backup_computer_name "cd /stuff/backup;cat > home_username_bin.tgz"; tar zcf - /home/username/download/ | ssh -p2424 bakup_computer_name "cd /stuff/backup;cat > home_username_download.tgz" tar zcf - /var/www/ | ssh -p2424 backup_computer_name "cd /stuff/backup;cat > www.tgz" # exit cleanly exit 0
This script is best run from a cron job as root. posted 15:24 [/podcast/shownotes] permanent link KDE 3.5.4 for ubuntu #latest kde deb http://kubuntu.org/packages/kde-354 dapper main
posted 01:54 [/computers/linux/distros/ubuntu] permanent link
|
voice mail
or call 864-372-4028
|