Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site mit-eddie.UUCP Path: utzoo!watmath!clyde!burl!we13!ihnp4!mit-eddie!smh From: smh@mit-eddie.UUCP (Steven M. Haflich) Newsgroups: net.unix Subject: Unix files to VMS using cu Message-ID: <1623@mit-eddie.UUCP> Date: Mon, 16-Apr-84 18:00:29 EST Article-I.D.: mit-eddi.1623 Posted: Mon Apr 16 18:00:29 1984 Date-Received: Tue, 17-Apr-84 07:54:20 EST Organization: MIT, Cambridge, MA Lines: 30 Often I work by modem from home, but lacking a printer, I wrote the following shell script to ship Unix text files to my wife's VMS shop. Now she can bring a listing home in the evening along with the bacon. See, VMS really is good for something! Create this script in your bin as vmsend and edit it so the is a real ascii \015 and the <^Z> is a real ascii \026. (Obviously I couldn't send these through the mail.) Preserve the backslashes in front of the 's. Then run the thing within cu via: ~$vmssend FILENAME The command file turns off the local echo in VMS and seems to run fine at 1200 baud. Steve Haflich ---------------------------- #! /bin/csh if ( -r $1 ) then echo -n set term/noecho \ sleep 2 echo -n create $1 \ sleep 2 cat $1 | tr '\012' '\015' sleep 2 echo -n <^Z> sleep 2 echo -n set term/echo \ else echo -n Nothing doing -- $1 unreadable \ endif echo -n All done \