Operating System - HP-UX
1832982 Members
3560 Online
110048 Solutions
New Discussion

Re: HP-UX Event Splitting

 
Chris Glover_2
Occasional Contributor

HP-UX Event Splitting

Hi all, Please Help!
I am trying to direct HP Openview (B.06.20) events to two serial com ports on a HP Workstation running HP-UX B.11.00.
I know the command syntax to force the events to only one port at a time, but I need to duplicate the data to both (and it works).
The command structure is:
echo '$x:$X command description \r' >/dev/tty0p0
What is the ANDing operation that would force the events to both tty0p0 and tty1p0?

2 REPLIES 2
Mark Grant
Honored Contributor

Re: HP-UX Event Splitting

You could use "tee"

echo '$x:$X command description \r' | tee -a file1 file2
Never preceed any demonstration with anything more predictive than "watch this"
Chris Glover_2
Occasional Contributor

Re: HP-UX Event Splitting

Thanks Mark,

I used the tee function with the following syntax.

echo 'the event description text here' | tee -a /dev/tty0p0 /dev/tty1p0

It works great.