UNIX -> MSDOS -> UNIX File transfers

UNIX -> MSDOS -> UNIX File transfers

Post by Oska » Wed, 08 Jun 1994 00:33:55



I have a problem concerning file transfers from Unix to Dos and back to Unix.

I copied a unix executable file from my account to disk drive, and now I want
to copy it back on to my account. (xview) But when I copy the file back to my
account and run it, it gives me a segmentation fault, and a core dump. DOes
know how to do the file transferring without haveing any core dumps and have
the file working?

        Thanks very much!

Albert


 
 
 

UNIX -> MSDOS -> UNIX File transfers

Post by Harry Caugh » Wed, 08 Jun 1994 04:39:49



>I have a problem concerning file transfers from Unix to Dos and back to Unix.
>I copied a unix executable file from my account to disk drive, and now I want
>to copy it back on to my account. (xview) But when I copy the file back to my
>account and run it, it gives me a segmentation fault, and a core dump. DOes
>know how to do the file transferring without haveing any core dumps and have
>the file working?
>    Thanks very much!
>Albert


"Oskar":
You didn't mention whether the Unix executable file is in ascii or some
other format.  Assuming, for a moment, it is ascii, try looking up the
following Unix commands:

flip -[mu]
unix2dos
dos2unix

Good luck!
--
Harry Caughey                      | My ability to communicate with you
*ia Beach, *ia           | is only as good as your ability to


 
 
 

UNIX -> MSDOS -> UNIX File transfers

Post by Jonathan Kitch » Wed, 08 Jun 1994 10:05:24



>I have a problem concerning file transfers from Unix to Dos and back to Unix.
>I copied a unix executable file from my account to disk drive, and now I want
>to copy it back on to my account. (xview) But when I copy the file back to my
>account and run it, it gives me a segmentation fault, and a core dump. DOes
>know how to do the file transferring without haveing any core dumps and have
>the file working?
>    Thanks very much!
>Albert


in linux I use a file called mcopy to copy to a dos floppy and back also
seems to be oK

"
 
 
 

UNIX -> MSDOS -> UNIX File transfers

Post by Jac » Wed, 08 Jun 1994 16:14:48


: I have a problem concerning file transfers from Unix to Dos and back to Unix.

: I copied a unix executable file from my account to disk drive, and now I want
: to copy it back on to my account. (xview) But when I copy the file back to my
: account and run it, it gives me a segmentation fault, and a core dump. DOes
: know how to do the file transferring without haveing any core dumps and have
: the file working?

Firstly, are you sure the executable was working before you downloaded it
onto the disk ?  you may not have compiled it correctly, even thought it
produced the final executable, and that's when you usually find core dumps
and segmentation faults when you run it.

However, if this was a utility installed on the system, which means it was
working properly to start with, then did you make sure when you downloaded
the file, you used BINARY transfer mode?  (i.e type --> bin at the ftp
prompt) .  Also, did you also uploaded it back using BINARY transfer
mode?  (use ASCII for text files only)  

If you did transfer the file using the correct mode, then i don't see
how FTPing the file back and forth could possiblly damage the file, and
causing core dumps.

Hope this helps,

J.L

*****************************************************************************
Jack Liu               | It took me fif* years to discover that i had no
La Trobe University    | talent for writing, but i couldn't give up, because

*****************************************************************************

 
 
 

UNIX -> MSDOS -> UNIX File transfers

Post by David N McCa » Wed, 08 Jun 1994 18:57:39




>>I have a problem concerning file transfers from Unix to Dos and back to Unix.

>>I copied a unix executable file from my account to disk drive, and now I want
>>to copy it back on to my account. (xview) But when I copy the file back to my
>>account and run it, it gives me a segmentation fault, and a core dump. DOes
>>know how to do the file transferring without haveing any core dumps and have
>>the file working?

>>        Thanks very much!

>>Albert


>"Oskar":
>You didn't mention whether the Unix executable file is in ascii or some
>other format.  Assuming, for a moment, it is ascii, try looking up the
>following Unix commands:

>flip -[mu]
>unix2dos
>dos2unix

>Good luck!

If its NOT in ascii (which if its xview is very likely) then you MUST transfer
it as a BINARY file from UNIX to DOS.  If you're using ftp then you need to set
:-

type i

BEFORE you do the transfer.  (I stands for Image, and means that ftp won't do
any conversion on the file as it transfers it.)

This applies (usually) to _all_ stages of the process, so if (like me) you have
to use multiple steps, _all_ of them should use a binary transfer.

        Enjoy,

--
                        David McCann

Computer Science Yr3                   Faculty Rep: All Comp.Sci Undergrads
Students Union Court Member (elect)    Board of Studies Rep: Comp.Sci 3
Tel: 0956 237670 (any time)            Student Council Rep: Comp.Sci

 
 
 

1. Wanted: <><><> Unix Specialist <><><>

PERMANENT, FULL-TIME, POSITION.

Attractive Palm Beach County, Florida Location.    MAJOR EMPLOYER.

<><><>  UNIX SPECIALIST <><><>

-- AIX, SCO Preferred
-- Programming Background Preferred
-- Knowledge of INFORMIX  a real plus

FOR CONFIDENTIAL CONSIDERATION, PLEASE CONTACT:
(resumes..in .txt format please..before calls...please)

Richard
ENTERPRISE SOFTWARE STRATEGIES, INC.

Toll-free Voice: 1-800-624-2944
Toll-free Fax:   1-800-470-3751
Voice:            1-561-998-2823
Fax:              1-561-995-0699


2. Setting up a Usenet server

3. new Unix user: How do I transfer file from MSDOS diskette onto Unix pc hard disk?

4. Linux SMP/ 486 SMP Motherboards?

5. file transfer question: sun<=>telnet<=>terminal server<=>modem ?

6. Problems with w98 & Red Hat 5.2

7. please help, problem with Unix --> NT--> Unix

8. Using an Adaptec ATA-2400A RAID adapter on FreeBSD 4.4

9. Convert MSDOS<-->Unix Text Files

10. COMPUTERWORLD: HP from Unix -> NT -> Unix

11. >>PW:C/C++ UNIX ANALYST/PROGRAMMER: Unix, Sun, Solaris 2.x, C/C++

12. itoa() in C for unix >>>

13. Win95 -> telnet -> unix -> 4gl (function keys)