It is currently Sat, 10 Oct 2015 02:30:21 GMT

Author Message
 Help: Cleanup zmodem exit trash in sh/ksh

I use a script that includes "hotkey" capability with menu's, using the
following function to read one key:

stty raw
reply=`dd if=/dev/tty bs=1 count=1 2>/dev/null`
stty -raw
echo ""

I used the following command to invoke a zmodem download and trap the
garbage after the transfer, so as not to interfere with the menu:

sz $HOME/ > junk 2>&1

This worked on the old Pentium server running Unixware 2.03, but hangs
up on the new Sun Ultrasparc workstation running SunOS 5.5. The tech
support folks haven't a clue. Any attempt to redirect stdout and stderr
in the usual fashion (above) results in a hung shell.

Any suggestions? I'd like this to continue to work on other systems,
since I distribute this script to others.

Ken Gresham

 Mon, 07 Dec 1998 03:00:00 GMT   
   [ 1 post ] 

Similar Threads

1. ksh/sh help with exiting from a SQLPLUS session

2. ksh/sh help with exiting from SQL session

3. root's shell, /sbin/sh, /bin/sh and /usr/ksh

4. ksh and sleep

5. ksh /

6. ksh: how to exit ksh parent with jobs running in background

7. Help: how to set exit code from sh

8. More help with sh/ksh script

9. Help with script (ksh/sh)

10. help convert one statement from ksh to sh

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software