Project Detail

Perl/Shell script to retrieve file  

Perl/Shell script to retrieve file is project number 382675
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: james5400

Budget: $30-250

Created: 02/07/2009 at 16:52 EST

Bid Count: 11

Average Bid:
$ 66

02/12/2009 at 16:52 EST

Project Creator: dfarrell
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (47 reviews)

Bid On This Project
 

Description

-
I need a script that retrieves a file from a remote server. Either Perl or shell script is fine, as long as it can run under OS X (Both Perl and shell should work and I will test). Here's what it needs to do:

1) Connect to a remote computer using FTP/TLS. Domain/IP address, port, user/pwd are hard-coded in the script.

2) Go to a directory on the remote computer (remote directory A). Path is hard-coded in the script.

3) Get the file in that remote directory that has the most recent creation date.

4) Copy the file to a directory on the local computer. Path is hard-coded in the script.

5) If copy was successful, move the file on the remote computer from its original location (remote directory A) to another directory on the remote computer (remote directory B). Path is hard-coded in the script.

6) Send an email (address hard-coded) with the success/failure for each step:
- connected to remote computer
- found remote directory A to copy from
- found a file in the remote directory
- read file from remote directory
- found local directory to copy to
- wrote file to local directory
- found remote directory B to move file to
- moved file from remote directory A to remote directory B


Needs to be well commented, and I'd appreciated up-front variables.

Thanks.
-

Messages Posted:1 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

50

1 day

02-09-2009 08:45 EST

can help you. tnx.

help

 

75

2 days

02-07-2009 20:02 EST

Hey there, Thanks for the invite. I can write this script for you. Will I have access to the OS X machine for testing? I can test on my end and it should work fine on your machine as long as all the perl modules are installed. I going to need the following perl modules installed on the machine running the script. Net::SSH Net::SCP Net::FTP

help

 

200

1 day

02-08-2009 00:46 EST

Hey dfarrell, can you check PM please?

help

 

45

3 days

02-07-2009 22:29 EST

Local testing on Linux. If SSH access is provided on OS X, it will tested on OS X also.

help

 

50

1 day

02-07-2009 20:11 EST

Regular FTP, and Perl Cool! (I really enjoy perl)

help

 

60

9 days

02-07-2009 22:20 EST

(No Feedback Yet)

Although I have little Mac experience, I have been working with Perl since 2001, and this sounds like a simple job. Are you able to install common Perl modules such as Net::FTP on your system? Thankyou for your cnsideration

help

 

45

1 day

02-07-2009 22:23 EST

(No Feedback Yet)

I will do it for you

help

 

50

1 day

02-08-2009 03:42 EST

(No Feedback Yet)

Hi, We are web development company based in MI, US. We are experts in Web 2.0 technologies. We will be able to deliver your script in a day. Kindly revert back or contact via gtalk to take this further. Regards, Team webCustomized.com Gtalk id: webCustomized(at)gtalk(dot)com

help

 

50

1 day

02-08-2009 04:24 EST

(No Feedback Yet)

Please see PM for details :)

help

 

30

1 day

02-09-2009 16:08 EST

(No Feedback Yet)

Done a very similar script of retreiving the last created/modified file with the log facility. I am perl programmer working on Avaya for past 4 years.

help

 

75

3 days

02-10-2009 01:11 EST

(No Feedback Yet)

Thanks for the invite. I can write this script for you. Will I have access to the OS X machine for testing? I can test on my end and it should work fine on your machine as long as all the perl modules are installed.

help


    Bid on this Project