Click to See Complete Forum and Search --> : Need help on writing a script !


tnt25
07-16-2001, 11:29 AM
I need a script, that would do the following:
1. Downloads a file using wget
2. After that uploads this file to another server that requires logging (user name and password)
3. Sends e-mail about downloading and uploading completed.

I'm a newbie with Linux so I am not able to write it myself though I know how to use wget...
Thanks alot in advance !!

slacker_x
07-16-2001, 03:29 PM
you would need to be more specific.

Does the script always connect to the same servers?
Does it always download the same file?

This sounds like something that could be done in perl fairly easily.

tnt25
07-17-2001, 01:30 AM
Well yes, I guess it is easy :) It's just me that cannot write it :D
As to server and file name - I would edit the script if I wanted to change address and file name that I would download.
The address of server for uploading this file would be always the same - though file name for uploading would change of course.
Thanx for your interest and waiting for reply...