- Posts: 3410
- Thank you received: 0
Halrun a script and exit to get Mesa Pinout
8 years 2 months ago #116603
by BigJohnT
Halrun a script and exit to get Mesa Pinout was created 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
Or is there another way to get the pinout from the card?
JT
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.
8 years 2 months ago #116606
by dgarrett
Replied by dgarrett on topic Halrun a script and exit to get Mesa Pinout
-I (interactive) is not appropriate for your purpose
Try:
$ 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.
8 years 2 months ago #116608
by BigJohnT
Replied by BigJohnT on topic Halrun a script and exit to get Mesa Pinout
Thanks Dewey,
I guess I interpreted interactive incorrectly I thought I needed that. Works like I need to now.
JT
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
