Sponsored Content
Top Forums Shell Programming and Scripting How to find whether a file is transferred thro bin or ascii mode? Post 302270326 by ultimatix on Sunday 21st of December 2008 05:19:44 AM
Old 12-21-2008
On opening the file from ftp server if you could find extra characters (square shaped) appended all over the file . U can assume that the transfer mode is ASCII.. and if not then Binary ..
Binary is the preferred mode of file transfer
 

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
globus_i_gass_copy_state_target_s(3)				 globus gass copy			      globus_i_gass_copy_state_target_s(3)

NAME
globus_i_gass_copy_state_target_s - SYNOPSIS
Data Fields char * url globus_gass_copy_attr_t * attr globus_mutex_t mutex globus_fifo_t queue int n_pending int n_simultaneous int n_complete globus_i_gass_copy_target_status_t status globus_gass_copy_url_mode_t mode union { struct { } ftp struct { globus_gass_transfer_request_t request } gass struct { globus_bool_t free_handle globus_bool_t seekable } io } data Detailed Description GASS copy target (e.g. source, destination) transfer information. Field Documentation char* globus_i_gass_copy_state_target_s::url url for file transfer globus_gass_copy_attr_t* globus_i_gass_copy_state_target_s::attr attributes to control file transfer globus_mutex_t globus_i_gass_copy_state_target_s::mutex coordinates the modifying of the target structure globus_fifo_t globus_i_gass_copy_state_target_s::queue a queue to manage the reading/writing of data buffers int globus_i_gass_copy_state_target_s::n_pending Used for keeping track of reads/writes in the read/write queue. int globus_i_gass_copy_state_target_s::n_simultaneous Used to limit the number of n_pending. int globus_i_gass_copy_state_target_s::n_complete Used to compute the offset for ftp writes. globus_i_gass_copy_target_status_t globus_i_gass_copy_state_target_s::status signifies the target has been successfully setup globus_gass_copy_url_mode_t globus_i_gass_copy_state_target_s::mode mode used to identify the below target union struct. struct { ... } globus_i_gass_copy_state_target_s::ftp ftp specific data globus_gass_transfer_request_t globus_i_gass_copy_state_target_s::request GASS equivelent of a handle. struct { ... } globus_i_gass_copy_state_target_s::gass GASS specific data. globus_bool_t globus_i_gass_copy_state_target_s::free_handle If the IO handle was passed as an argument then FALSE If the IO handle was created internally then TRUE. globus_bool_t globus_i_gass_copy_state_target_s::seekable Can globus_io_file_seek() be performed on this handle? struct { ... } globus_i_gass_copy_state_target_s::io IO specific data. union { ... } globus_i_gass_copy_state_target_s::data data required to perform each type of transfer Author Generated automatically by Doxygen for globus gass copy from the source code. Version 8.4 Mon Apr 30 2012 globus_i_gass_copy_state_target_s(3)
All times are GMT -4. The time now is 07:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy