Sponsored Content
Top Forums Shell Programming and Scripting How to find whether a file is transferred thro bin or ascii mode? Post 302270493 by Ashok_oct22 on Monday 22nd of December 2008 05:02:26 AM
Old 12-22-2008
Hi Ultimatix,

I checked the the file the way you said and it worked right. I now need to know the file transferred from ftp to unix has been transferred thro bin or ascii mode?
Ashok_oct22
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Ftp :bin and ascii

Hi , I am trying to ftp a file once using ascii mode and once binary mode The ftp prompt shows different bytes transferred for each of them but at the destination server,each one of these files gets created with the same byte size and are identical.Can anyone shed any light on this ... (1 Reply)
Discussion started by: smehra
1 Replies

2. SCO

compressed file was ftpied in ascii mode needs recovery

I am unbale to uncompress a file which was compress then moved to another pc in ascii mode instead of binary mode. Is there any way to recover it. Please help us. While uncompress it is giving corrupt input. (3 Replies)
Discussion started by: raj2610
3 Replies

3. UNIX for Advanced & Expert Users

Converting ASCII to Binary mode

Dear All, Business Users are transfering ( FTP ) a CSV file into the IBM AIX box with transfer mode as ASCII. But I want to convert the CSV file from ASCII mode into binary mode, as my script expects file in binary mode. Is it possible to do through Unix commands? Thanks in Advance, RK (1 Reply)
Discussion started by: srajeshmca
1 Replies

4. Shell Programming and Scripting

SFTP in ASCII mode

Hi Copying a file from Unix (Solaris) to a windows server using sftp. File arrives with carriage returns and line feeds screwed (binary file transfer). Is there a way to get these to copy properly without having to edit or messa about with the file on the windows side. I know with FTP you can... (4 Replies)
Discussion started by: billy_mega
4 Replies

5. Shell Programming and Scripting

`find`, pulling 1st field from ASCII flat file as search/-name?

Hey Everyone! I have searched around for this on Unix.com and Google, and I'm either not phrasing my search properly or this is not as simple as I thought... I have a script that runs on a nightly basis that pulls one field worth of data from an internal MySQL database and populates to an... (2 Replies)
Discussion started by: Gecko12332
2 Replies

6. Shell Programming and Scripting

#!/bin/bash cannot find file or directory

Hello, When i run a bash script on ubuntu i get this message.. #!/bin/bash cannot find file or directory... Can anibody help me with this, because the file actually exists.... Is there any extra configuration to be made? (5 Replies)
Discussion started by: oliveiraum
5 Replies

7. Shell Programming and Scripting

Ascii Mode appending extra records to csv file

I am relatively new to this forum and Unix scripting. ksh script: part 1 :will call a PL\SQL program will create 3 CSV file at the unix directory. part 2 : will sftp the files to the EFT server. Once the EFT server receives these file , it will transfer them to a shared windows folders. ... (3 Replies)
Discussion started by: developerpa
3 Replies

8. Solaris

/bin/find: stat() error <File> : No such file or directory

Hi, I am getting below error in Solaris 10 SPARC when trying to issue a search on /var/tmp partition Below is the query /bin/find /var/tmp/ -type f -atime +1 Below is the result /bin/find: stat() error <File> : No such file or directory (28 Replies)
Discussion started by: prash358
28 Replies

9. Shell Programming and Scripting

WARNING! 16126 bare linefeeds received in ASCII mode

I am doing FTP from a server and getting below ERROR:WARNING! 16126 bare linefeeds received in ASCII mode File may not have transferred correctly. I looked into web and found that I may need to change the mode to binary, but when I do so the records are not in readable format...So need the file... (10 Replies)
Discussion started by: joshilalit2004
10 Replies

10. HP-UX

From a C++ application how to find if a hpux host is in standard mode or trusted mode

is there a way for my C++ application to find out which mode the hpux OS is running in? standard mode or trusted mode. (3 Replies)
Discussion started by: einsteinBrain
3 Replies
xferlog(4)							   File Formats 							xferlog(4)

NAME
xferlog - FTP Server transfer log file SYNOPSIS
/var/log/xferlog DESCRIPTION
The xferlog file contains transfer logging information from the FTP Server, in.ftpd(1M). You can use the logfile capability to change the location of the log file. See ftpaccess(4). By default, each server entry is composed of a single line of the following form. All fields are separated by spaces. current-time transfer-time remote-host bytes-transferred filename transfer-type special-action-flag direction access-mode username service-name authentication-method authenticated-user-id completion-status The xferlog format capability can be used to customize the transfer log file format used. In addition to those in the default format, it also supports chroot-filename, file-size, and restart-offset fields. See ftpaccess(4). The fields are defined as follows: current-time The current local time in the form DDD MMM dd hh:mm:ss YYYY, where: DDD Is the day of the week MMM Is the month dd Is the day of the month hh Is the hour mm Is the minutes ss Is the seconds YYYY Is the year transfer-time The total time in seconds for the transfer remote-host The remote host name bytes-transferred The number of bytes transferred filename The absolute pathname of the transferred file transfer-type A single character indicating the type of transfer: a Indicates an ascii transfer b Indicates a binary transfer special-action-flag One or more single character flags that indicate any special action taken. The special-action-flag can have one of more of the following values: C File was compressed U File was uncompressed T File was archived, for example, by using tar(1) _ (underbar) No action was taken. direction The direction of the transfer. direction can have one of the following values: o Outgoing i Incoming access-mode The method by which the user is logged in. access-mode can have one of the following values: a For an anonymous user. g For a passworded guest user. See the description of the guestgroup capability in ftpaccess(4). r For a real, locally authenticated user username The local username, or if anonymous, the ID string given service-name The name of the service invoked, usually ftp authentication-method The method of authentication used. authentication-method can have one of the following values: 0 None 1 RFC 931 authentication authenticated-user-id The user ID returned by the authentication method. A * is used if an authenticated user ID is not available. completion-status A single character indicating the status of the transfer. completion-status can have one of the following values: c Indicates complete transfer i Indicates incomplete transfer chroot-filename The pathname of the transferred file relative to the chroot point. This will differ from the filename field for anonymous and guest users. file-size The size, in bytes, of the file on the server. restart-offset The offset, in bytes, at which the file transfer was restarted (0 when no restart offset was specified). FILES
/var/log/xferlog ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWftpr | +-----------------------------+-----------------------------+ |Interface Stability |External | +-----------------------------+-----------------------------+ SEE ALSO
tar(1), in.ftpd(1M), ftpaccess(4), ftpconversions(4), attributes(5) StJohns, Mike. RFC 931, Authentication Server. Network Working Group. January 1985. SunOS 5.11 25 Apr 2003 xferlog(4)
All times are GMT -4. The time now is 05:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy