Halrun a script and exit to get Mesa Pinout

More
26 Aug 2018 12:56 #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
loadrt hostmot2
show pin
quit
halrun -I -f temp.hal

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

JT

Please Log in or Create an account to join the conversation.

More
26 Aug 2018 14:29 - 26 Aug 2018 15:30 #116606 by dgarrett
-I (interactive) is not appropriate for your purpose

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


Try:
$ halrun -f tmp.hal >|1.txt 2>|2.txt
Last edit: 26 Aug 2018 15:30 by dgarrett.

Please Log in or Create an account to join the conversation.

More
26 Aug 2018 15:55 #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 or Create an account to join the conversation.

Time to create page: 0.176 seconds
Powered by Kunena Forum