1832473 Members
2721 Online
110043 Solutions
New Discussion

Hpterm window

 
Henry Chua
Super Advisor

Hpterm window

Hi guys,

What can i do in a script to spam a hpterm window and redirect all my output there, and when the script finishes, closes the window.

Best regards
Henry
1 REPLY 1
Lee Harris_5
Valued Contributor

Re: Hpterm window

Why on earth would you want to do this?

Run the hpterm, then find out what pty it's using e.g. /dev/pty/ttya1 using who or something, then run your script like this...

script.sh 2>&1 > /dev/pty/ttya1

You could put that script inside another script, which launches the hpterm, records the PID and then kills that pid when the other script has finished.