Wednesday, March 11, 2015

2014 (12) January (2) Example Code for running WSGI Web Application with ... Script for downloa


I have created a Script for downloading to create different laundry baskets Package Repository of Arch Linux, with all 3 Repository is Core, Extra, Community by applications to run through Cron may be run every 3-4 hours, in both files. Three are on File: repo-core.sh #! / bin / bash SOURCE = 'rsync: //mirror.us.leaseweb.net/archlinux' DEST = '/ home / authapon / web / archlinux' REPOS = 'core. 'RSYNC_OPTS = "- qarulpEot --delete-after --delete-excluded --delay-updates" LCK_FLE =' / home / authapon / web / repo-core.lck 'PATH =' / usr / bin '# Make sure only. 1 instance runs if [-e "$ LCK_FLE"]; then OTHER_PID = $ (cat $ LCK_FLE) echo "Another instance already running: $ OTHER_PID" exit 1 fi echo $$> "$ LCK_FLE" echo "Syncing $ REPO" rsync. $ RSYNC_OPTS $ {SOURCE} / $ {REPO} $ {DEST} # Cleanup rm -f "$ LCK_FLE" exit 0 File: repo-extra.sh #! / bin / bash SOURCE = 'rsync: //mirror.us. leaseweb.net/archlinux 'DEST =' / home / authapon / web / archlinux 'REPOS =' extra 'RSYNC_OPTS = "- qarulpEot --delete-after --delete-excluded --delay-updates" LCK_FLE =' / home /. authapon / web / repo-extra.lck 'PATH =' / usr / bin '# Make sure only 1 instance runs if [-e "$ laundry baskets LCK_FLE"]; then OTHER_PID = $ (cat $ LCK_FLE) echo "Another instance already running. : $ OTHER_PID "exit 1 fi echo $$>" $ LCK_FLE "echo" Syncing $ REPO "rsync $ RSYNC_OPTS $ {SOURCE} / $ {REPO} $ {DEST} # Cleanup rm -f" laundry baskets $ LCK_FLE "exit 0 File:. repo-community.sh laundry baskets #! / bin / bash SOURCE = 'rsync: //mirror.us.leaseweb.net/archlinux' DEST = '/ home / authapon / web / archlinux' REPOS = 'community' RSYNC_OPTS = "- qarulpEot. --delete-after --delete-excluded --delay-updates "LCK_FLE = '/ laundry baskets home / authapon / web / repo-community.lck' PATH = '/ usr / bin' laundry baskets # Make sure only 1 instance runs if [-. e "$ LCK_FLE"]; then OTHER_PID = $ (cat $ LCK_FLE) echo "Another instance already running: $ OTHER_PID" exit 1 fi echo $$> "$ LCK_FLE" laundry baskets echo "Syncing $ REPO" rsync $ RSYNC_OPTS $ {SOURCE}. / $ {REPO} $ {DEST} # Cleanup rm -f "$ LCK_FLE" exit 0.
2014 (12) January (2) Example Code for running WSGI Web Application with ... Script for downloading Package to create Repos ... November (2) October (1) September (2) August (. 1) July (1) June (3) 2013 (19) November (5) October (3) September (1) August (1) July (2) June (1) March (. 2) February (2) January (2) 2012 (1) January (1) 2011 (3) October (1) March (1) January (1) 2010 (2) May (. 1) February (1) 2009 (1) January (1) 2008 (13) December (1) September (5) August (2) June (2) April (2) January (. 1) 2007 (10) November (1) May (2) April (3) February (3) January (1) 2006 (15) November (2) October (1) June (. 2) May (5) April (3) March (2) 2005 (1) June (1).


No comments:

Post a Comment