FTP download script



I'm trying to develop a script that can be scheduled to run 1x/day to
automate the process of logging into a domain and using FTP, select
and download the newest access log(s) into a local storage
repository.

The reason I mention the above is that I'm open to any reasonable
method of implimenting this...eg, command line, etc. I haven't done
all that much research specific to see if someone has already written
a shareware app or script to do this exact task.

What I have found is Automator. In Automator, its pretty
straightforward to invoke my FTP application (Transmit) and by using
its 'synchronize' feature, get it to download any new files to the
intended local destination. What's kind of nice about this approach
is that if the script fails to run for some reason, the next time it
runs, it will pick up howerver many new access log files exist.

The problem I'm having is that when the Automator "script" runs, it
starts Transmit and selects the correct account for the FTP, but then
pauses because it wants the account's password to be entered. Once
the password is manually entered, the rest runs OK to completion.
Obviously, having this manual entry point of the password entry
defeats the basic purpose of having a script that can run
unattended.

Question is: what do I need to add/change/etc to have the script be
able to enter the Account password for the FTP application to not
hang?

My general thoughts are that the password for Transmit might need to
go into the Keychain, but I don't see the obvious method with which to
do this.

Suggestions? Comments? Alternative approaches?


-hh
.



Relevant Pages

  • Re: FTP delete problem
    ... the problem was a lock to a file that the ftp get worked, ... Bernard Cheah ha scritto: ... generate by schedule task. ... If i manually execute the script, the output wrote, but by schedule ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: FTP delete problem
    ... Yes, the script looking the previous day log file, but when it's still ... Bernard Cheah ha scritto: ... the problem was a lock to a file that the ftp get worked, ... generate by schedule task. ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: Automate FTP account creation
    ... i.e when user register to website then an FTP account ... not give you root access. ... You could do it by executing a PHP script which switches to the root ...
    (comp.lang.php)
  • SUMMARY: AUTOMATED FTP WITH TWO LOGINS
    ... The script is now working, Michael DeSimone made the below suggestion: ... AUTOMATED FTP WITH TWO LOGINS ... can't find list of remote files, ...
    (SunManagers)
  • Re: Scripted FTP transfer
    ... Rather then specify the username and password in your script, ... going to run the ftp script, ... If you are running this from root, the .netrc will be created in / ... I'm trying to write a FTP command file on the fly to ...
    (comp.unix.sco.misc)