#!/bin/csh -f # pub # ------------------------------------------------------------------------------ # Shell script to publish local files to remote directories and servers. # ------------------------------------------------------------------------------ # Usage: See Usage section below or run with -h or --help option to see usage. # Assumptions: # Effects: # - Copies files to remote directories and servers. # Notes: # Anticipated Changes: # Implementation Notes: # Portability Issues: # Revision History: # $Log$ # ------------------------------------------------------------------------------ if ("$1" == "-h" || "$1" == "--help") then echo "Usage: $0:t [-a]" echo " -a = Also update other servers" exit 1 endif # Note: Don't use ~/fred. For reason, run command: remotepub -h remotepub /home/fred/bin -r * # Publish Unix scripts to Bristle Web site remotepub /var/www/html/Tips/Unix \ acclog \ acclog_filter \ acclog_filter_grep \ acclog_grep \ acclog_https \ acclog_https_grep \ acclog_https_grep_404 \ acclog_https_grep_500 \ acclogs \ acclogs2 \ acctail \ acctail_filter \ acctail_filter_grep \ acctail_grep \ acctail_https \ acctail_https_grep \ acctail_https_grep_404 \ acctail_https_grep_500 \ authorize_ssh_key \ aws_availability_zone \ aws_hostname \ aws_instance_id \ aws_instance_type \ aws_local_hostname \ aws_local_ipv4 \ aws_mac_address \ aws_metadata \ aws_public_hostname \ aws_public_ipv4 \ aws_region \ aws_security_groups \ beep \ bootlog \ bootlogs \ boottail \ catwithnames \ check_web_site \ cls \ compareWithVisibizGit \ config_proxy \ cronlog \ cronlogs \ crontail \ ct \ dateping \ dbload \ dbsave \ delete_pyc_files \ diffcprm \ dir \ dirr \ dirrls \ dirtree \ django_ver \ dubig \ dumpddl \ e \ er \ errlog \ errlog_grep \ errlog_https \ errlogs \ errlogs2 \ errtail \ errtail_grep \ errtail_https \ except \ filelow \ filter_bots \ findclassinjars \ ftplog \ ftplogs \ ftptail \ hhldbsave \ ip_to_name \ ipaddress \ ipblock \ ipunblock \ ipunblock_fail2ban \ itflog \ local_ip_address \ logs \ loop \ mailerrs \ mailerrsless \ maillog \ maillogs \ mailtail \ mailwarns \ manb \ mdcp \ mdmv \ memlog \ memlog_details \ memlow \ memoryping \ memtail \ memtail_details \ messlog \ messlogs \ messtail \ mysqldb \ nslookup_bare_ip_address \ nslookup_beep \ nslookup_loop \ pause \ percentmem \ percentmem2 \ pingbristle \ pingfacebook \ pingfred \ pinggetboonwiki \ pinggmail \ printheader \ promptloop \ psgrep \ pub \ publish.bat \ python_ver \ remotecopy \ seclog \ seclogs \ sectail \ show_that_aliases_are_ignored_on_if_lines \ show_that_aliases_are_ignored_on_rest_of_line \ show_that_semicolons_in_aliases_break_short_circuits \ sloop \ split_at_chars \ splitdiff \ sudo_if_necessary \ tarball \ tomcat \ tripwirereview \ watch_http_server_count \ webstats \ whichcat \ whiche \ whichtrident \ windiff \ # End of list if ("$1" != "-a") then exit 0 endif # Login to trident to test updates set dir = ~/fred/UNIX/trident/bin $dir:h:t set dir = ~/fred/UNIX/amazon1/bin echo windiff . $dir windiff . $dir set reply = `promptloop "pub $dir (y/n)? " y n` if ($reply == "y") then echo pushd $dir pushd $dir ./pub popd $dir:h:t endif set dir = ~/fred/UNIX/HHL/webprod1/bin echo windiff . $dir windiff . $dir set reply = `promptloop "pub $dir (y/n)? " y n` if ($reply == "y") then echo pushd $dir pushd $dir ./pub -a popd hhlwebprod1 endif #set dir = ~/fred/UNIX/BoonCard/walletron_appprod1/bin #echo windiff . $dir # windiff . $dir #set reply = `promptloop "pub $dir (y/n)? " y n` #if ($reply == "y") then # echo pushd $dir # pushd $dir # ./pub # popd # walletron_appprod1 #endif #set dir = ~/fred/UNIX/BoonCard/prod1/bin #echo windiff . $dir # windiff . $dir #set reply = `promptloop "pub $dir (y/n)? " y n` #if ($reply == "y") then # echo pushd $dir # pushd $dir # ./pub # popd # boonprod1 #endif #set dir = ~/fred/UNIX/BoonCard/test1/bin #echo windiff . $dir # windiff . $dir #set reply = `promptloop "pub $dir (y/n)? " y n` #if ($reply == "y") then # echo pushd $dir # pushd $dir # ./pub # popd # boontest1 #endif #set dir = ~/fred/UNIX/CLSI/www1/bin #echo windiff . $dir # windiff . $dir #set reply = `promptloop "pub $dir (y/n)? " y n` #if ($reply == "y") then # echo pushd $dir # pushd $dir # ./pub # popd # clsi_www1 #endif #set dir = ~/fred/UNIX/Balanced/cloud1/bin #echo windiff . $dir # windiff . $dir #set reply = `promptloop "pub $dir (y/n)? " y n` #if ($reply == "y") then # echo pushd $dir # pushd $dir # ./pub # popd # $dir:h:t #endif #set dir = ~/fred/UNIX/TargetInfo/webprod1/bin #echo windiff . $dir # windiff . $dir #set reply = `promptloop "pub $dir (y/n)? " y n` #if ($reply == "y") then # echo pushd $dir # pushd $dir # ./pub # popd # targetinfo_webprod1 #endif #set dir = ~/fred/UNIX/zenbanx/webprod1/bin #echo windiff . $dir # windiff . $dir #set reply = `promptloop "pub $dir (y/n)? " y n` #if ($reply == "y") then # echo pushd $dir # pushd $dir # ./pub # popd # zenbanxwebprod1 #endif