The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-30-2008
sateesh.d sateesh.d is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 1
How to check a file whether it is in binay mode or not while doing ftp??

Hi,

One bank statement file should be loaded into some tables by using a concurrent program. But if the file is transfered in binary mode i am getting some special characters in the file which is unexpected. so, for that while moving that file data into tables i want to write a script that checks whether the file is in binay mode or in Ascii mode?? If it is transfered in binary mode, then i want to display one error message that the file should not be transferred in binary mode.

I think my explanation is clear.

can any one let me know what is the command to check whether the file is in binary mode??

Thanks in advance.
Sateesh.