Can A File Be Copied to an RS232 Port on Unix?

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Can A File Be Copied to an RS232 Port on Unix?
# 1  
Old 09-01-2009
Question Can A File Be Copied to an RS232 Port on Unix?

We have a text/csv file (4mb) sitting on a Unix box. The PC belongs to a retail store and they're asking me to bring the file over to Windows so they can import the file.

Can a file be copied to an rs232 port? If so how? The idea is that I'll hook up a null modem cable to the Unix com port, and to a Windows laptop. I'll run Hyper Term and set it to capture text to a file. At which point on the Unix box I'll copy the file to the com port and Hyper Term will capture the text to a file on the Windows laptop. In theory. Smilie

So that's option 1. Crude, but no dependencies.

Option 2 is to use WinSCP on the Windows laptop. Unix dependencies would be ssh running, and knowing an ssh logon. I'm not really a Unix guy so I'm in over my heads pretty quick here.

Option 3 is ftp. I have no reason to believe this Unix box has been set up with ftp or telnet, etc. Not sure how to tell.

Option 4 is tar to floppies, and span until copied. Tried that and the floppies were no good. I'll try it again, but the store is 3 hours away. I'd like to try something more positive than floppies.

Thanks in advance for any advice.
# 2  
Old 09-01-2009
The kermit protocol is intended for sending files over a serial link.

The simplest method would be to enable a login via the serial port and then use hyperterm on the Windows PC getting it log the transaction to a file on the P.C. and then simply "cat" the file concerned.

How you enable a login via the serial port will depend on what Unix you are using.
# 3  
Old 09-01-2009
Version and vintage is important.
Can you post the output from the unix command:

uname -a

Also, can you post the output from the unix command:

egrep "ftp|telnet" /etc/services

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Checking integrity copied from remote server using UNIX command

I am getting a file (abc.txt) using scp from remote server. scp <connect string> -i $HOME/.ssh/id_dsa rem_id@hostname:/var/prod/abc.txt /var/prod/abc.out Before loading I need to check if the file is indeed same , for that I thought of checking the line count but when I used ssh command it was... (3 Replies)
Discussion started by: lalitpct
3 Replies

2. UNIX for Dummies Questions & Answers

I may have copied unix script !

How to write unix scripts which I may have been copied from the command prompt into the shell.. Can we do an FTP ? (1 Reply)
Discussion started by: Taekit
1 Replies

3. Shell Programming and Scripting

Script to port a file from unix and save in windows

hi, when i finish running some scripts in unix...some csv file is getting im manually taking this csv file from this generated directory and using FTP, i'm importing to windows os and saving in a directory... please give me a script to automate that i can add in my... (1 Reply)
Discussion started by: dll_fpga
1 Replies

4. Shell Programming and Scripting

Extract a number from a line in a file and sed in another copied file

Dear all, I am trying to extract a number from a line in one file (task 1), duplicate another file (task 2) and replace all instances of the strings 300, in duplicated with the extracted number (task 3). Here is what I have tried so far: for ((k=1;k<4;k++)); do temp=`sed -n "${k}p"... (2 Replies)
Discussion started by: mnaqvi
2 Replies

5. Solaris

Check copied file

Hi all, If i wanted to copy file within different folders or different servers, how do i determine the copied file is absolutely correct :confused: Is it using cmp and chksum command enough? Anyway that i can make further checking? Thanks in advance for reading & anyone who reply the... (7 Replies)
Discussion started by: beginningDBA
7 Replies

6. Programming

How to read the CTS and DSR of RS232 in Unix using C language?

Hello to all Gurus out there, Could you show me a source code in Unix platform using C language. I want to read the status or voltage level of the DSR and CTS. Thanks a lot, Swing5 (2 Replies)
Discussion started by: Swing5
2 Replies

7. Shell Programming and Scripting

how to compare all files in one unix box has been to copied to another unix box

Hi our unix admin has copied all files from one unix box to new unix box. We just need to confirm that all the file systems are copied properly. How to validate. (9 Replies)
Discussion started by: sravanreddym
9 Replies

8. Shell Programming and Scripting

How to check file is being copied

I wanna check whether a file is being copied ,i.e the file size is increasing. Thanks for your help (2 Replies)
Discussion started by: anhkeen
2 Replies

9. UNIX for Dummies Questions & Answers

How to find File copied completely or else ...

In Unix, I am having one file getting copied to some directory. Which command will help me ensure, that file is not completely copied to the disk? (2 Replies)
Discussion started by: videsh77
2 Replies
Login or Register to Ask a Question