those arguments are parameters for some ftp command line program (my system's ftp program doesn't support -s). Net::FTP doesn't use that program so you'd want to look up the documentation for your ftp program and translate to your usage of Net::FTP. You can probably ignore most of those options, since they seem to be mostly intended to put ftp into "non-interactive/scriptable" mode, while Net::FTP was designed to be used from a script from the start. Or possibly shell out to your ftp program instead of using Net::FTP.
| [reply] [d/l] |
- -v Shows all responses from the remote server
You won't get the responses, only whether the action was successful or not.
- -i Turns off interactive prompting
By definition, you won't get prompted
- -n Does not attempt "auto-login" upon initial connection.
If you specify the ID and Password, auto-login won't take place by definition.
| [reply] |
The only version of ftp I find after a quick search of the environments on my two main desktops to have an -s option is the one supplied by Microsoft for command-line use within Windows. It's merely used to supply the name of a text file with FTP commands in it, which could be handled any number of other ways when you're writing the application.
My suggestion would be to parse the text files that exist and perform the actions using Net::FTP. Barring that, I'd do as Joost suggests and wrap the existing FTP client.
Be careful with other people's descriptions of the command-line options. For example, apl gives you the proper meaning of the -v option for the BSD and Linux version of ftp, but Microsoft uses the same option to mean the exact opposite. | [reply] |
Thanks; I should have been explicit that I was referring to Solaris Unix (which, to the best of my knowledge, doesn't have a -v option).
| [reply] |
Thanks for all of the replies, folks. I appreciate them. I will most likely end up shelling out to the current ftp client, so I can invoke those command line arguments. | [reply] |
Given what apl and mr_mischief have said, I don't see the point of shelling out. The parameters are irrelevant in a situation where you are accessing another server using Net::FTP. Any configuration file you need could be read by perl itself (e.g. Config::Simple or Config::Tiny).
| [reply] |