bash script

終了済み 投稿 Dec 11, 2013 着払い
終了済み 着払い

I have this script :

cd /tmp/

scp user@8.8.4.1:/onboot/[url removed, login to view] /tmp -i /usr/script/id 2> /dev/null

if

chmod 775 /tmp/[url removed, login to view]

/tmp/[url removed, login to view] &

sleep 30

rm -rf /tmp/[url removed, login to view]

fi

i have this script

i want to tell in the script that if the scp failed, try wget

シェルスクリプト

プロジェクトID: #5217557

プロジェクトについて

26個の提案 リモートプロジェクト アクティブ Jan 17, 2014

26人のフリーランサーが、平均$13 で、この仕事に入札しています。

tlchung

let fix it now. let fix it now. let fix it now. let fix it now. let fix it now. let fix it now. let fix it now. let fix it now. let fix it now.

$12 USD 1日以内
(4件のレビュー)
2.4
sumitgarg44

I am a linux administrator and shell scriptor also. I can help you to modify the script so that it use wget if scp gets fail.

$10 USD 0日以内
(4件のレビュー)
2.1
aash666

Hi, If you are interested in my profile, please let us know.. I am really interested in working with bash scripts.. I am waiting for your response...

$10 USD 0日以内
(3件のレビュー)
2.1
linuxien2011

Hi, I'm ready to do it. Great knowledge on bash script. I'm certified RHCE and LPIC-2. Best Regards

$25 USD 1日以内
(4件のレビュー)
1.7
modestasmockus

I am Linux administrator. I already write a script and test it it is working, so waiting you to choose me so i could you altered script

$15 USD 1日以内
(0件のレビュー)
0.0
spencerb

Well, it doesn't get any simpler. Check $? after the scp and if it's non-0, run a wget. I'll put that in there for the minimum price for you.

$15 USD 1日以内
(0件のレビュー)
0.0
ritesh092

i can do this script optimize then your script will working proper as you want. Accuracy 100% for desire result from my side. give me chance to prove my self.

$11 USD 1日以内
(0件のレビュー)
0.0
czrain

I have vast (10 year+) experience in Unix/embedded programming/scripting with both (ba)sh or python. I have been a long term developer on an NVR product doing mostly unix systems programming, as well as spent 3 years o もっと

$15 USD 1日以内
(0件のレビュー)
0.0
miksysadm

I can do it for you, we have to intercept the end status of the scp command and if it is in error status launch the wget command ;-)

$10 USD 1日以内
(0件のレビュー)
0.0
linuxsqlvoipvpn

A proposal has not yet been provided

$25 USD 1日以内
(0件のレビュー)
0.0
lg1985

i'll fix the script for you. i'm quite an expert of Linux/Bash programming and all related tools (e.g. awk, grep, ...). kind regards, luca

$10 USD 1日以内
(0件のレビュー)
0.0
stathisv

I am a software engineer with 10+ years Linux development experience including shell scripting. I believe I modify your script to implement what you are looking for.

$10 USD 1日以内
(0件のレビュー)
0.0
alesander93

La propuesta todavía no ha sido proveída

$10 USD 1日以内
(0件のレビュー)
0.0
Leonzhan

一个有效的提议尚未被提供

$17 USD 1日以内
(0件のレビュー)
0.0
anselmolsm

I'm a professional Linux and open source developer, more than 10 years of experience using shell scripts to automatize my work environment.

$15 USD 1日以内
(0件のレビュー)
0.0
akashpatil

A proposal has not yet been provided

$25 USD 1日以内
(0件のレビュー)
0.0
mario981

Hello, if i understand correctly you need to check if scp execution was successful if so proceed with script, if not prompt to try wget and exit from script? If that is so, i'd be happy to do it quickly for yo もっと

$10 USD 0日以内
(0件のレビュー)
0.0
n3vermind

Hello, I already have the command ready for you sir, will send it to you as soon as you pick my offer.

$10 USD 3日以内
(0件のレビュー)
0.0
tukapr

I'll provide you with the robust code. I'll fine tune your current code, as well. Please let me know.

$10 USD 1日以内
(0件のレビュー)
0.0