View previous topic :: View next topic |
Author |
Message |
Gulver n00b
Joined: 22 Feb 2014 Posts: 5
|
Posted: Thu Feb 27, 2014 6:41 am Post subject: Script to act as a pro-argument |
|
|
I'd use PRIME for load consuming applications in a two GPU machine.
For it to work, I have to run the app with "DRI_PRIME=1."
Code: | DRI_PRIME=1 /usr/bin/app |
What I want is to make a binary script to input the argument to use as:
Alternative suggestions are welcome. |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Thu Feb 27, 2014 8:39 am Post subject: |
|
|
Something in the lines of
Code: |
#!/bin/bash
export foo="moo"
eval "$@"
|
Note that 'eval' is a bash built-in, so if you use another shell you'll need some other syntax. |
|
Back to top |
|
|
Gulver n00b
Joined: 22 Feb 2014 Posts: 5
|
Posted: Thu Feb 27, 2014 9:22 am Post subject: |
|
|
Thanks. |
|
Back to top |
|
|
|