Originally posted by NDSP I need to connect to a ftp server and include user/account and password as well as the fine to transfer all on one line. Can it be done? or am I wishing for to much. If so how? Thanks
you need to connect o a UNIX ftp server? and transfer a file??
if so.. yes it can be done...
to open an ftp connection (from command line)
dir (to show directorys)
The problem I have is we don't want to do it in a script, we need to do it dynamically from a java program. So the server, username, password, and filename are all being retrieved from a properties file, then feed into a string that I push out to a command line. Thus the need to do it all on one line.
So cruz, I assume that line you wrote will get a file, would doing