local print hangs

From: selcuk karaca (selcuk.karaca@aski.gov.tr)
Date: Fri Jan 09 2004 - 11:04:14 EST


Hello admins..

MY system: Tru64unix V5.1 PK4

I have a LA75 printer directly connected to a VT420 terminal. VT420 is
connected to a DEC server 300 ..

We are using oracle forms6.0 applicaitons in character mode..In one of these
applications user tries to print a list file to the printer directly
connected to VT420.. These printers do not have a printcap entry. Instead we
use a script to redirect list file content to both terminal screen and
attached printer. we use VT420 CSI control sequences.. Script is this;

||||||||||||||||||||||||||LocalPrint||||||||||||||||||||||||||
clear
cat /home/rbin/term_autoprinton
cat $1
cat /home/rbin/term_autoprintoff

CSI control characters are the followings;

/home/rbin/term_autoprinton : CSI5i

/home/rbin/term_autoprintoff : CSI4i

My problem is ;
When user tries to print from application (like HOST (localPrint
Myfile.lis) )
I see the cat output goes both terminal and printer BUT it hangs there. It
never executes term_autoprintOff script..
What can be tha cause..

When I execute the script from command prompt It executes well..

||||||||||||||||||||||||User profile ||||||||||||||||||||||||
#stty must be defined with PATH variable in the /etc/profile ,otherwise stty
wont work
stty -isig -noflsh -brkint ignbrk
clear

ORACLE_HOME=MYOracleDir; export ORACLE_HOME
#/home/rbin is the common place for terminal user unix commands
PATH=$ORACLE_HOME/bin:/home/rbin:.; export PATH
#REP-0004 to eliminate
ORACLE_LOCALPREFERENCE=/home/rbin ; export ORACLE_LOCALPREFERENCE
PRINTER=konsol; export PRINTER
TK_PRINTER=konsol;export TK_PRINTER
TK_PRINT_STATUS=echo;export TK_PRINT_STATUS
TK_PRINT=echo; export TK_PRINT
HOME=$ORACLE_HOME/bin ; export HOME
TWO_TASK=MyHOST; export TWO_TASK
ORACLE_TERM=vt220 ; export ORACLE_TERM
ORACLE_SID=MySid; export ORACLE_SID
NLS_LANG=turkish_turkey.we8iso8859p9 ; export NLS_LANG

#LANG=tr_TR.ISO8859-9 ; export LANG
TERM=vt220 ; export TERM
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/jre11/lib/alpha/native
_threads ; export LD_LIBRARY_PATH

REPORTS60_PATH=`pwd` ; export REPORTS60_PATH
FORMS60_PATH=`pwd`:$FORMS60_PATH ; export FORMS60_PATH
DISPLAY=MYHost:0.0 ; export DISPLAY
# these 2 entries for report temporary dir and report terminal type
definitions
SRW_TMP=/usr/tmp; export SRW_TMP
term=srw_220;export term
# dont give any rights to other group members...
umask 007

#oracle programs
if [ $USER != MyUser ] ; then
#welcome & password change program
  sysenter
  exec f60run PROG0 ID/PWD
else
 exec f60run PROG1 ID/PWD
fi
exit

DEC server 300 Port settings are the following ;
||||||||||||||||||||||||CHARACTERISTICS||||||||||||||||||||||||
Port 14: Server: GIRIS1

Character Size: 8 Input Speed: 9600
Flow Control: XON Output Speed: 9600
Parity: None Signal Control: Disabled
Stop Bits: Dynamic Signal Select: CTS-DSR-RTS-DTR

Access: Local Local Switch: None
Backwards Switch: None Name: PORT_14
Break: Local Session Limit: 4
Forwards Switch: None Type: Ansi
Default Protocol: LAT

Preferred Service: MEVLANA

Authorized Groups: 0
(Current) Groups: 0

Enabled Characteristics:
Autobaud, Autoprompt, Broadcast, Failover, Input Flow Control, Lock,
Loss Notification, Message Codes, Output Flow Control, Verification

|||||||||||||||STATUS||||||||||||||||||||||||
Port 14: Server: GIRIS1

Access: Local Current Service:
Status: Local Mode Current Node:
Sessions: 0 Current Port:

Input XOFFed: No Output Signals: DTR RTS
Output XOFFed: No Input Signals: None



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:47 EDT