Find Jobs
Hire Freelancers

write shell script

$10-30 USD

Completed
Posted over 7 years ago

$10-30 USD

Paid on delivery
#!/bin/sh # cd to fbshop-casperjs directory cd $(dirname $0)/.. casperjs src/shop/crawl/[login to view URL] $* exit $? I have script above. some worker call that script continuously 24H. I would like to modify like below. I don't know how to control value and if condition in shell script. $i should be stored somewhere outside to increase the value for every independent excution of .sh script. Environment of this script on Ubuntu 14.X.X #!/bin/sh # cd to fbshop-casperjs directory cd $(dirname $0)/.. if($i is not exist){ $i=0 } if($i == 200){ $i=0 } if($* contain "[login to view URL]"){ if($i <100){ casperjs src/shop/crawl/[login to view URL] $* } else{ casperjs --ignore-ssl-errors=true src/shop/crawl/[login to view URL] $* } $i=$i+1 } else{ casperjs --ignore-ssl-errors=true src/shop/crawl/[login to view URL] $* } exit $?
Project ID: 11911099

About the project

5 proposals
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hello, it is basic script, I'd like to write it for you. I'm going to store $i value in external file, placed in the same directory, where script is placed. I'll test script on my test machine and then provide you the script. Please let me know if you have questions. Kind regards, Vladimir Solovyov
$10 USD in 0 day
5.0 (15 reviews)
3.9
3.9
5 freelancers are bidding on average $23 USD for this job
User Avatar
Hello, I am an expert in Linux (18 years of experience; Debian, Ubuntu, CentOS and many others) and shell scripting. I'm ready to start working on your project.
$30 USD in 3 days
5.0 (34 reviews)
5.1
5.1
User Avatar
A proposal has not yet been provided
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I will complete your requirement for 1 day
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of KOREA, REPUBLIC OF
관악구, Korea, Republic of
5.0
22
Payment method verified
Member since Jul 19, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.