HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Call 'system' is bringing garbage to the screen.
Operating System - HP-UX
1839067
Members
3069
Online
110135
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 07:58 AM
02-25-2002 07:58 AM
Call 'system' is bringing garbage to the screen.
I have a programmer that is executing a system call in COBOL. When the user types ahead, they get garbage on the screen. Here's what she's tried already: In my Cobol program I do a CALL "SYSTEM" USING some-command "N". The problem is during these CALL "SYSTEM" the user is typing ahead and garbage gets on my screen.
I tried changing the Repaint Screen flag at the end to "Y" and it flickered, way too much to be useful.
I am thinking can I put something into the actual Unix command that would redirect the INPUT to a file or something, sort of how we redirect output 1>/dev/null 2>/dev/null.
All the CALL "SYSTEM" commands were redirecting input already with the
>/dev/null
on it, so I put them all back in but one. What we have is the call to system is running a script CALL "SYSTEM" USING WS-CMD where WS-CMD is a script-name. Inside this script is this command
cp /JDIS/PARTS/$1 /JDIS/WEB/docs/parts/$1 >/dev/null 2>/dev/null
We need to use a script because /JDIS/WEB/docs/parts has special permissions (because this is where the browser can look into) so to copy something in there,
the script has to have the same permissions as the /JDIS/WEB/docs directory
to get this to work.
I tried to redirect the
CALL "SYSTEM" using WS-CMD "N"
where WS-CMD is "script-name >/dev/null"
but that didn't work. Then we tried to run it in background like this
CALL "SYSTEM" using WS-CMD "N"
where WS-CMD is "script-name &l"
Then we tried to run it in background by changing the command in the script to
cp /JDIS/PARTS/$1 /JDIS/WEB/docs/parts/$1 & >/dev/null 2>/dev/null
Neither worked.
I did just change the Repaint Option from "N" to "Y" for this one command and now the
flickering is minimal (still there, but not as bad). We'll have to see if we must find a way to fix it further - but it is a step in the right direction.
Any suggestions would be appreciated!
Thanks, Terri Christensen.
I tried changing the Repaint Screen flag at the end to "Y" and it flickered, way too much to be useful.
I am thinking can I put something into the actual Unix command that would redirect the INPUT to a file or something, sort of how we redirect output 1>/dev/null 2>/dev/null.
All the CALL "SYSTEM" commands were redirecting input already with the
>/dev/null
on it, so I put them all back in but one. What we have is the call to system is running a script CALL "SYSTEM" USING WS-CMD where WS-CMD is a script-name. Inside this script is this command
cp /JDIS/PARTS/$1 /JDIS/WEB/docs/parts/$1 >/dev/null 2>/dev/null
We need to use a script because /JDIS/WEB/docs/parts has special permissions (because this is where the browser can look into) so to copy something in there,
the script has to have the same permissions as the /JDIS/WEB/docs directory
to get this to work.
I tried to redirect the
CALL "SYSTEM" using WS-CMD "N"
where WS-CMD is "script-name >/dev/null"
but that didn't work. Then we tried to run it in background like this
CALL "SYSTEM" using WS-CMD "N"
where WS-CMD is "script-name &l"
Then we tried to run it in background by changing the command in the script to
cp /JDIS/PARTS/$1 /JDIS/WEB/docs/parts/$1 & >/dev/null 2>/dev/null
Neither worked.
I did just change the Repaint Option from "N" to "Y" for this one command and now the
flickering is minimal (still there, but not as bad). We'll have to see if we must find a way to fix it further - but it is a step in the right direction.
Any suggestions would be appreciated!
Thanks, Terri Christensen.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 08:04 AM
02-25-2002 08:04 AM
Re: Call 'system' is bringing garbage to the screen.
Have you tried to set -echo in stty?
live free or die
harry
live free or die
harry
Live Free or Die
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 08:36 AM
02-25-2002 08:36 AM
Re: Call 'system' is bringing garbage to the screen.
Hi Terri:
My cut at this would be to call a small c program to flush the input/output buffers before calling your actual routine. You could even call it after your routine as well.
Compile it like this:
cc -Ae flush.c -o flush
Regards, Clay
My cut at this would be to call a small c program to flush the input/output buffers before calling your actual routine. You could even call it after your routine as well.
Compile it like this:
cc -Ae flush.c -o flush
Regards, Clay
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 01:21 PM
02-25-2002 01:21 PM
Re: Call 'system' is bringing garbage to the screen.
Thank you for the suggestions. I forwarded them to the programmer for her use. Thanks again, Terri.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP