Help with clear printer queue script in AIX 5.3

view story

http://www.unix.com – Good day UNIX forum, could you help me with my clear printer queue script, i have problems with the consistency of this function, sometimes it works sometimes it doesn't. Thanks in advance Code: } preRemovePrintQ(){ clear; echo; echo "=============================================================================="; echo "### R E M O V E    P R I N T E R    Q U E U E"; echo "=============================================================================="; echo; echo; echo "Enter print queue for removal: \c"; read q (HowTos)