SFTP file format question


 
Thread Tools Search this Thread
Operating Systems Solaris SFTP file format question
# 1  
Old 06-17-2009
SFTP file format question

Hi,

We here at State of Iowa are trying to SFTP an ascii text file off of an IBM server over to our DOL SUN Server using Solaris 5.8. After doing the secure handshake login all I am doing at present is "sftp> get testfile". Somehow in pulling the file in from the IBM server to the SUN server it is converting it to machine language. Has anyone else run into this problem, and if so how were you able to over come it?

Thanks,

wsiefkas
# 2  
Old 06-17-2009
Are you sure it wasn't stored in EBCDIC on the IBM?
Try using the dd UNIX tool to convert from EBCDIC to ASCII.

Some older ftp implementations hid the fact - they automatically converted EBCDIC<->ASCII for you.
# 3  
Old 06-17-2009
Jim,

We are sure its in ascii format on the IBM server as they did a "file" command on it to see its format. Upon further research with the DOL IT team, it is believed the States, server needs to have a different switch setting for file transfers. I am waiting to hear back from our ITE IBM server guys.

Thanks!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Question about SFTP command

Hi All, This is JCL that contain command script to copy file to destionation (UNIX) I have 2 questions. ********* //NATTOUT1 JOB ACCL,'XXXXYYYY',CLASS=A,MSGCLASS=X, // NOTIFY=&SYSUID,REGION=0M,USER=SFTPXXX // SET... (1 Reply)
Discussion started by: getandput
1 Replies

2. Shell Programming and Scripting

Yet another sftp automation question

Hello, I've read quite a few of the sftp questions and answers on the forum but I believe my situation is slightly different. I need to automate an sftp transfer to a host that requires not only a ssh publickey, but also a password. When I try using sftp in batch mode, supplying a "user... (4 Replies)
Discussion started by: n3llyb0y
4 Replies

3. Shell Programming and Scripting

Converting windows format file to unix format using script

Hi, I am having couple of files which i used to copy from windows to Linux, so now in case of text files (CTRL^M) appears at end of line. I know i can convert this windows format file to unix format file by running dos2unix. My requirement here is that i want to do it automatically using a... (5 Replies)
Discussion started by: sarbjit
5 Replies

4. UNIX and Linux Applications

Question concerning enterprise ftp/sftp solutions

Would any of you have any good experiences, recommendations here. We are basically looking for a one stop solution for ftp/sftp including key and encryption management. FTP/S and any HA functionality would be a great bonus. Cheers! (1 Reply)
Discussion started by: Eronysis
1 Replies

5. Solaris

SFTP log question

On a Sun Solaris 9 box, how do I know what kind of SFTP server is running? And, if someone sftp'ed a file to my box, where is the log file I can check if the sftp session was a successful one or not? (1 Reply)
Discussion started by: fld2007
1 Replies

6. Shell Programming and Scripting

awk/nawk question to format a file

Hi, I am new to awk/nawk, needs help. I want to merge the rows having emplid attribute same into a single row in the following file. In actual this kind of file will have around 50k rows. Here is my input file id|emplid|firstname|dep|lastname 1|001234|test|1001|1 2|002345|test|1032|2... (7 Replies)
Discussion started by: kumar04
7 Replies

7. UNIX for Dummies Questions & Answers

Question about Openssh and sftp

I have to create an automated sftp job on an AIX box. The sftp command doesnt work. Do I need to install the openssh package in order to be able to invoke the sftp command? (2 Replies)
Discussion started by: NycUnxer
2 Replies

8. Shell Programming and Scripting

SFTP file transfer mode question

I am having trouble viewing a file in ASCII after doing a 'get' using SFTP. It appears to have come across as machine language. Does the file have to be in ASCII format prior to the 'get' or is there a way to convert it to ascii after I get it onto my server? I have read where the secure file... (0 Replies)
Discussion started by: wsiefkas
0 Replies

9. HP-UX

SFTP Protocol: How to transfer the file in PC Format

Hi, We are facing issue with files transfered using SFTP in Hp-UX. The transfered files are in Unix Format. That is, file format as UNIX (LF) instead of a PC format (CR & LF). How can we achieve file transfers as PC format using SFTP? Your help and input will be highly appreciated. ... (2 Replies)
Discussion started by: brap45
2 Replies

10. UNIX for Dummies Questions & Answers

To convert multi format file to a readable ascii format

Hi I have a file which has ascii , binary, binary decimal coded,decimal & hexadecimal data with lot of special characters (like öƒ.ƒ.„İİ¡Š·œƒ.„İİ¡Š· ) in it. I want to standardize the file into ASCII format & later use that as source . Can any one suggest a way a logic to convert such... (5 Replies)
Discussion started by: gaur.deepti
5 Replies
Login or Register to Ask a Question