Operating System - HP-UX
1756735 Members
2876 Online
108852 Solutions
New Discussion юеВ

BASIC script access to /dev/stdin,stdout,stderr

 
Mike Henderson
New Member

BASIC script access to /dev/stdin,stdout,stderr

We have a third-party application
developed on a different platform. It
is transportable to many platforms, but
in the case of HP, it has an issue. It
is written in BASIC and requires
(normal functionality) access to stdin,
stdout, and stderr, which it cannot
access directly internally by device
number. This is accomplished by
referencing /dev/stdin, etc on other
systems but HP doesn't have these files.
How can this be accomplished on HP?
3 REPLIES 3
Mark Greene_1
Honored Contributor

Re: BASIC script access to /dev/stdin,stdout,stderr

Have you tried creating named pipes for /dev/stdin, etc.? Also, could you post how you would initiate running the BASIC program?

mark
the future will be a lot like now, only later
Carlos Fernandez Riera
Honored Contributor

Re: BASIC script access to /dev/stdin,stdout,stderr


Try to link /dev/tty

to /dev/stdin /dev/stdout /dev/stderr

ln /dev/tty /dev/stdin




See on others systems is that files are linked to anyother specila files and check if major and minor for /dev/stdin are equal to anyothers in /dev.

Just thinks.
unsupported
Mike Henderson
New Member

Re: BASIC script access to /dev/stdin,stdout,stderr

Thank you for your very prompt replies! I apologize for the delay in response, I've been out of town AND have not received a test program from the vendor to test your solutions (They are rather over-protective of thier software). This uses Thoroughbred basic and would be normally be executed via a statement similar to "./b IPLNAME", where the IPLNAME is the 'template' that assigns the devices. They have moved the task to a (Caldera) server that does not have this issue to resolve. I would still love to test this to see why they couldn't get it to work!