automating ftp for back-up purpose

As far as I can tell we have an O/S2 box right now that is using mptn to automate a backup system that a programmer before me had fixed up. It appears that he has a *.cmd file ran on the task scheduler that calls the ftp statement, ex. call ftp jack < c:mptnECTjack. And that jack file has the command $getjack*. There is also a netrc file that appears to be point to the machine names defined by a HOSTS file that is running the macro jack and performing the ftp commands, but I can't figure out for the life of me exactly how it all ties in together. I have been tasked to move this automated backup system to a new machine running SUSE Linux Enterprise Server 9. I have compiled and installed the newest version of mptn and tried setting everything up the same, but I am not having any success in automating these ftp commands on a timed schedule. I know I can put this in the crontab to schedule it, but I'm not real sure how to get it setup correctly. Does anyone have any suggestions on what I can do from this step on, or is there another approach in automating the ftp commands that may be easier for me to setup? Thanks in advance to anyone that may help me in my situation.


Mathew G. McElwee
Micro Systems Support Specialist
NWGA Health District


  • [b][red]This message was edited by mgmcelwee at 2007-2-9 12:15:51[/red][/b][hr]
    [b][red]This message was edited by mgmcelwee at 2007-2-9 12:15:5[/red][/b][hr]
    I wrote the following script and named it ftpstartup

    ftp < autoftp

    I then wrote the following file named autoftp

    open mysite
    lcd /localdirectory
    cd /backupdirectory
    get file.tar.gz
    delete file.tar.gz

    Now when I run the script to automate my ftp it is not filling out the password field for me causing it to pause on the password. I have to manually put in my password for it to complete the process, but I want it to be able to login and get and delete the files I need. Does anyone have any suggestions why my password is not being inputed during the above process.

    : Thanks,
    : Mathew G. McElwee
    : Micro Systems Support Specialist
    : NWGA Health District

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion