Halrun a script and exit to get Mesa Pinout

More
8 years 2 months ago #116603 by BigJohnT
I'm trying to get the pins from a Mesa card using halrun command in Python 3 subprocess command but the script never exits.

temp.hal
Code:
loadrt hostmot2 show pin quit
Code:
halrun -I -f temp.hal

Or is there another way to get the pinout from the card?

JT

Please Log in to join the conversation.

More
8 years 2 months ago #116606 by dgarrett
-I (interactive) is not appropriate for your purpose

$ man halrun
...
-I Run an interactive halcmd session
...


Try:
Code:
$ halrun -f tmp.hal >|1.txt 2>|2.txt

Please Log in to join the conversation.

More
8 years 2 months ago #116608 by BigJohnT
Thanks Dewey,

I guess I interpreted interactive incorrectly I thought I needed that. Works like I need to now.

JT

Please Log in to join the conversation.

Time to create page: 0.098 seconds
Powered by Kunena Forum