need a bash script to connect to ftp server.
hello guys. i badly need some help here. I need a bash script that connects to an ftp server to get and memorize a list of folders in the directory.
ps : i've already written one that connects to the ftp server and can even send some files. This is an example of my script Quote:
|
If you are looking to syncronize files across machines I would recomend rsync. You can use it in combinaion with ssh for a secure connection.
This will "memorize folders" and only sync files that have changed. http://rsync.samba.org/documentation.html |
The most common way I have seen to automate/script use of a program that is interactive (e.g. asks for a password, provides a command prompt, etc.) is to use expect. You can make a standalone expect script or you can embed an expect script within a bash script. For instance:
Code:
#!/bin/bash |
All times are GMT -5. The time now is 03:54 PM. |