Share/Save/Bookmark
Subscribe

Hot offers:

Your Ad Here
Jobs By Category:
.NET
3D Rendering
Academic Writing
Access DB
Accounting
Accounting/Bookkeeping
ActionScript
Active Directory
Adobe
Advertising
After Effects
Ajax
Algorithmic
Amazon Web Services
Android
Animation
Apache
Architecture
Art & Craft
Article
Article Rewriting
Article Submission
Articles
ASP
Asterisk PBX
Astroturfing
Auction
Audio Services
Audio Transcription
AutoCAD
Automotive
Azure
Banner Design
Biology
Biotechnology
Blackberry
Blog
Blog Install
Blog Posting
Boonex Dolphin
BPO
Branding
Building & Architecture
Building Architecture
Bulk Marketing
Business Analysis
Business Cards
Business Plans
Buyer Sourcing
C Programming
C#
C# Programming
C++ Programming
C/C++
CAD/CAM
CakePHP
Captivate
Caricature / Cartoons
Cartography/Maps
Catchy
Chemical Engineering
Christmas
Chrome OS
Cisco
Civil Engineering
Classifieds Posting
Clone
Cloud Computing/EC2
CMS
Cocoa
Codeigniter
Cold Fusion
Computer Security
Conceptual Design
Construction Monitoring
Contracts
Copywriting
Corporate Identity
Craigslist
CRM
Cryptography
CSS
Customer Support
Customization
Data
Data Entry
Data Processing
Data Scraping
Dating
Delphi
Desktop Support
Django
DNS
DotNetNuke
Dreamweaver
Drupal
E-Commerce
eBay
eBooks
eCommerce
Editing
Electrical Engineering
Electronic Forms
Electronics
Email
eMarketing
Embedded Software
Engineering
Erlang
ERP
Excel
Expression Engine
Facebook
Fashion Design
Fiction
Finance
Finance Research
Financial Markets
Finite Element Analysis
Fiverr
Flash
Flex
Forum
Forum Posting
Forum Software
Game Design
Genealogy
Geology
Ghostwriting
Google Analytics
Google App Engine
Google Go
Google Wave
GPGPU
Grant Writing
Graphic Design
Groupon
Handheld
Handheld / PDA
Home Design Drafting
HP Openview
HTML
Human Resources
IIS
Illustration
Illustrator
Image
InDesign
Industrial Design
Installation
Insurance
Interior Design
Internet Marketing
iPhone
iSeries / AS400
J2EE
Java
JavaFX
Javascript
Joomla
jQuery
jQuery / Prototype
JSP
LaTeX
Layout / Formatting
LDAP
Leads
Legal
Legal Advice
Legal Research
Link Building
LinkBuilding
Links
Linux
Logo Design
Long Term
Mac OS
MacOS
Magento
Magneto
Management
Manufacturing
Market Research
Marketing
Materials Engineering
Matlab/Mathematica
Maya
Mechanical Engineering
Mechatronics
Medical
Medical Writing
Metatrader
Microcontroller
Microsoft
MLM
MMORPG
MODx
MS Access
MS Exchange
MS Expression
MS SQL
MS Windows
mSQL
MSWindows
Multimedia
Music
MySpace
MySQL
Nokia
Objective C
Oracle
Order Processing
OsCommerce
Packaging / Covers
Palm
Patents
Paypal API
PCB Layout
PDF
Penny Auction
PeopleSoft
Perl
Perl/CGI
Phone Support
Photo
Photo Editing
Photography
Photoshop
Photoshop Coding
PHP
PLA / SCADA
PostgreSQL
Posting
Powerpoint
Presenter
Print
Printing
Product Descriptions
Product Sourcing
Programming
Project Management
Project Scheduling
Proofreading
Protoshare
PSD Coding
PSD to HTML
PSD2CMS
Publishing
Python
Quantum
Quantum Computing/Physics
QuarkXPress
Quickbooks/Quicken/MYOB
REALbasic
Recruiting
Rendering/3D
Report Writing
Research
Reviews
Ruby/Ruby on Rails
Sales
SAP
Scientific Research
Script Install
Script Installation
Search Engine Optimization
Second Life / Virtual Worlds
Security
SEM / Adwords
SEO
Sharepoint
Shell Script
Shopping Carts
Silverlight
Slideshow
Social Engine
Social Networking
SocialEngine
Software Architecture
Software Testing
Solidworks
Sports
SQL
Stationery Design
Statistical Analysis
Structural Engineering
Supplier Sourcing
Support
Symbian
System Admin
System Admin.
System Administration
Tax
Technical Support
Technical Writing
Telemarketing
Template
Templates
Test Automation
Testing / QA
Training
Transcription
Translation
Travel Writing
Troubleshooting
Tutoring
Tutoring / Education
Twitter
Typography
UML Design
User Interface / IA
vBulletin
Verilog / VHDL
Video Broadcasting
Video Services
Video Uploading
Virtual Assistant
Virtual Reality
Visio
Visual Basic
Voice Talent
VoIP
Volusion
Web Promotion
Web Scraping
Web Search
Website
Website Design
Website QA
Website Security
Weddings
Windows
Windows Mobile
Windows Server
Wireless
Word
Wordpress
Writing
XHTML
XML
XXX
YouTube
Zen Cart
Zend


Your Ad Here

BASH PROGRAMING!


Your Ad Here

Required knowledge: Linux






I have a script that I wrote and I need it extended,

I need the script to compare a directory list to a user variable if the directory does not exist then it needs to be created.

Then the users remote directory gets mounted (there are multiple users)

then an rsync takes place.

Please notice how I create the directories daily by date!

Your job is to fix up this script, I got the script to compare usernames by the number of letters and thats wrong.

so i need a spot to enter the mount points as well and to get the script to compare and care directories.

my budget is $ 30

#!/bin/bash
users=( ysapir david rpril zrobinson )
emailadd=
hostname=`hostname`
directory=`date +%Y-%m-%d`

echo $ {users[@]}
echo $ directory


foonum=$ {#users}

count=0

for d in $ ( ls /backup/ ); do

echo $ {d[@]}

for ((i=0;i<$ foonum;i++)); do

if [ "$ {users[$ {i}]}" = "$ {d[@]}" ] ; then
echo $ {users[$ {i}]} directory is synced

mount //192.168.1.11/MyDocuments/Backup /mnt/$ {users[0]}/ -o username=ysapir,password=zublahzublah
rsync -av /mnt/ysapir/ /backup/$ {users[0]}/$ directory | tee /tmp/rsync.log

cat /tmp/rsync.log | mail -s "$ (date)"

cat /tmp/rsync.log >> /var/log/rsync/log

umount //192.168.1.11/MyDocuments/Backup

let "count += 1"
fi

done
done

echo "COUNT: " . $ {count}
echo "FOONUM: " . $ {foonum}

if [ $ {count} != $ {foonum} ] ; then

echo Usernames are not synced, please verify variable.
else
echo Usernames are all synced.
fi


Your Ad Here


Latest Related projects:

Title Bids Avg
Bash Programmer Needed 0 n/a
Adpeeps and Geodesics with php. Css and html programing 0 n/a
Opensource python plugin for bash shell on Linux 0 n/a
Opensource PHP plugin for bash shell on Linux 0 n/a
Google V8 plugin for bash shell on Linux 0 n/a
Monadic Parser for bash shell scripts in V8 JavaScript 0 n/a
CDI College Programing - Webzin 0 n/a
Quick loop script (bash,perl,python)   Featured Projects, identified by a label 3 $ 3650
Bash Script for Installing Gitorious/Ruby Ubuntu 11.04   0 n/a
Bash script to batch download files and create directories   0 n/a
Bash Script   8 $ 36325
Virtualmin Bash Script   1 $ 3630
Virtualmin / Bash Script   0 n/a
Procmail script to execute a BASH script and send an email   2 $ 3665
OZ8940 Programing   0 n/a
Simple bash script   1 $ 36100
Bash script sending DHCP messages via netcat   1 $ 3640
Bash Script Needed To Setup Sftp User On Centos Server 0 n/a
Face Book Programing 1 $ 200
Log review script-Bash/Perl-Unix-Linux   0 n/a
Perl/bash scripting tasks   1 $ 3680
Basic Java programing adding lottery ticket number   1 $ 3630
Import And Organize 800000 Images Shell Script 0 n/a
Put 'minutes since last git commit' into my bash prompt   0 n/a
Bash Scripting 0 n/a
Help Me To Build Shell Script 0 n/a
BASH --> Python tutor via IM/e-mail   0 n/a
Stock Market Based Programing 0 n/a
Batch to bash translation   0 n/a
Bash Shell Script + Xhtml Simple Script + Page (1-2 Hours) 0 n/a

Post your own project on getafreelancer Search for scimilar work on getafreelancer
Post your own project on scriptlance Search for scimilar work on scriptlance
Post your own project on eufreelance Search for scimilar work on eufreelance

Outsource your programming projects at ScriptLance.com today - Free signup

Post and Bid on projects! Join EUFreelance.com for free!




Currently viewed: "BASH PROGRAMING!"