Find Jobs
Hire Freelancers

BASH PROGRAMING!

$30-250 USD

完了済み
投稿日: 15年以上前

$30-250 USD

完了時にお支払い
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 //[login to view URL] /mnt/${users[0]}/ -o username=ysapir,password=zublahzublah rsync -av /mnt/ysapir/ /backup/${users[0]}/$directory | tee /tmp/[login to view URL] cat /tmp/[login to view URL] | mail -s "$(date)" cat /tmp/[login to view URL] >> /var/log/rsync/log umount //[login to view URL] 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
プロジェクト ID: 300096

プロジェクトについて

6個の提案
リモートプロジェクト
アクティブ 16年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
Hi. That's my specialty. Please check PM.
$50 USD 7日以内
4.9 (170 レビュー)
7.0
7.0
この仕事に6人のフリーランサーが、平均$33 USDで入札しています
ユーザーアバター
Hi Please check PMB for details
$30 USD 1日以内
4.9 (20 レビュー)
4.2
4.2
ユーザーアバター
Hello, it's easy, let me do it for you, Thank you!
$30 USD 2日以内
3.3 (8 レビュー)
3.7
3.7
ユーザーアバター
Hello, please see details in PM.
$30 USD 1日以内
5.0 (7 レビュー)
3.1
3.1
ユーザーアバター
Hi, I can help with this matter, just contact me, Thanks
$30 USD 2日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
Details in PMB.
$30 USD 0日以内
0.0 (0 レビュー)
0.0
0.0

クライアントについて

UNITED STATESのフラグ
Gaithersburg, United States
5.0
55
お支払い方法確認済み
メンバー登録日:9月 10, 2007

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。