From support@ece.ucdavis.edu Fri Jan  2 13:17:25 2009
Date: Mon, 15 Dec 2008 10:59:25 -0800
From: Philip Young via RT <support@ece.ucdavis.edu>
To: hurst@ece.ucdavis.edu
Subject: [ece.ucdavis.edu #64504] switcap output for project (fwd) 

    [ The following text is in the "utf-8" character set. ]
    [ Your display is set for the "ISO-8859-1" character set.  ]
    [ Some characters may be displayed incorrectly. ]


Switcap now works on Linux via a dos emulator (dosemu).

The switcap input file must be a DOS file.

In vi, you can save the file as a DOS file with the command:
:set ff=dos
(If you use a PC editor to create the file, it should not need conversion
 to a DOS file. If you don't use VI normally, create your
 file then do this on Linux:

 vi filename
 then type ':set ff=dos'
 then type ':wq' to save and exit.

After the switcap file is saved as a dos file, the program is able to process the file.

Complete Instuctions

 run only once to create the ~/.dosemu directory
 ==========
 1. on a 'snake' linux machine ('ssh snake.ece.ucdavis.edu'),
    type '/pkg/dosemu/bin/dosemu -i'
    Then hit 'enter'
 
 2. type '2' (this selects option 2 "Use a read-only FreeDOS C: drive 
   in /pkg/dosemu-1.4.0/share/dosemu/freedos".)
 
 3. close the dosemu window

 ==========
 
1. create switcap.in file in vi.
Be sure to save the file as a DOS file with the following vi command before
writing the file:

 :set ff=dos

OR

convert your text file to DOS format on Linux using the command:
  unix2dos ps6_swit.in
(in this example, ps6_swit.in is the name of the SWITCAP input file. You can
 use a different filename)

2. launch dosemu:
 on linux, type '/pkg/dosemu/bin/dosemu'.
 
3.  change to the user's home directory:
 type 'd:'
 
 4. run switcap:
 type 'c:\switcap\sw.exe'
 
 5. enter input/output file names (which must be in your Linux home directory)
input: ps6_swit.in
output: ps6_swit.out
 *****
 
 Here, D: is the user's home directory.  Filenames are limited to the 8
 eight characters plus a  three letter file extension. (e.g. filename.ext).
 
