Path: utzoo!mnetor!tmsoft!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!sungate!glen From: glen@sungate.UUCP (Glen) Newsgroups: comp.unix.xenix.sco Subject: Re: copy files from Xenix on DOS disk Message-ID: <431@sungate.UUCP> Date: 19 Feb 91 16:16:42 GMT References: <4613@peora.sdc.ccur.com> Reply-To: glen@sungate.UUCP (Glen) Organization: sungate! where the magic still lives... Lines: 45 In article <4613@peora.sdc.ccur.com> tran@peora.sdc.ccur.com (Nhan Tran) writes: > Is there anyway to copy a Xenix file (text file) to Dos disk (floppy or >hard disk) other than resorting to communication programs. > doscp works only from Dos to Xenix. Yes, there is. As distributed by SCO, doscp is configured for optimal transfer from Dos to Xenix. Here's why.. The file /etc/default/msdos contains a listing of "dos-style" drive-letters and their Xenix device equivalents. The "A" drive (A:) is configured as /dev/install. Since /dev/install is a device which automatically detects source floppy density, you can automatically copy from low or high density DOS disks to Xenix. However, /dev/install does not auto-sense on write, so you can't go backwards. There are several methods of correcting this. The easiest, but least convenient, is to just specify the full device in the copy... doscp xenixfile /dev/fd096ds15/dossubdir/dosfile for high density 1.2MB, or, for 360K's... doscp xenixfile /dev/fd048ds9/dossubdir/dosfile A more convenient way would be to modify the /etc/default/msdos file to specify "hard" devices instead of the /dev/install device. Although this will enable the doscp command with MS-DOS-style drive letters, it prevents the automatic detection of density. My workaraound for this is to set up two drive letters for each floppy drive, like this... # /etc/default/msdos A=/dev/fd096ds15 ... E=/dev/fd048ds9 ... So, to copy to/from high density dos floppies, you'd use A:, and, for low-density floppies, you'd use E:. Hope this helps! -- ** --*-- --*-- --*-- --*-- --*-- --*-- --*-- --*-- --*-- ** Glen Barney 301-330-4700 The beach is not just a place InterNet: glen%sungate@uunet.UU.NET to be - it's a way of life! BangPath: uunet!sungate!glen