Find Jobs
Hire Freelancers

CURL Shell Script

$30-250 USD

In Progress
Posted almost 14 years ago

$30-250 USD

Paid on delivery
Hi, We have a simple shell command like this: for xmlcdrfile in *.[login to view URL]; do curl -X POST --basic -u "UUUUUUU:PPPPPP" -d cdr=$(cat $xmlcdrfile) http://XXXXXXXX; done which can be run to post files to an app server. It responds normally with a 200 OK. The addition of rm $xmlcdrfile before the done also deletes the file. However,, if the post is unsuccessful the file gets deleted anyway. We would like the above modifying so it can be safely run in cron and will only ever delete a file which has been sucesfully posted. In the event of an error, it should pass the file and process the next one. Very quick job for someone who knows what they're doing with shell! Thanks!
Project ID: 713676

About the project

1 proposal
Remote project
Active 14 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, i am shell export, this project is simple, let me do it for you, thank you!
$50 USD in 0 day
3.3 (8 reviews)
3.7
3.7

About the client

Flag of UNITED KINGDOM
Cardiff, United Kingdom
5.0
1
Member since Jun 15, 2010

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)
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.