Question : solaris 10 ftp problem with option -niv

Hello,

I am not expert of UNIX, currently am trying to move jobs on solaris 8 to solaris 10...
There are some jobs those are using "ftp" to transfer files like below..
ftp -niv

but when move these jobs to solaris 10 only for some target ftp servers (UNIX, having source IP filtering), ftp fail.
But if we add -s option, it works ok .. though if possible like to avoid -s option as it indicates "stop".... but do not know why without -s doesn't work and would like to understand..
would somebody please help...?
Code Snippet:
1:
2:
ftp -niv <= no good only sometimes
ftp -nivs <= works .... but like to understand why

Answer : solaris 10 ftp problem with option -niv

It depends upon whether the ftp server you are connecting to understands the SYST command (or accepts it)

Details about the command are at http://cr.yp.to/ftp/syst.html

However, some sites block it for security purposes. So it is not necessarily solely to do with old systems - some newer systems will also not support the command.

It is good practice for your automated scripts to specify whether the request is to use binary or ascii transfers rather than relying on the results of the query. In this case, you do not need the output of SYST to find out what to do.

Cheers,

Joel
Random Solutions  
 
programming4us programming4us