BMax Linux - ExecFile (System_)
BlitzMax Forums/BlitzMax Programming/BMax Linux - ExecFile (System_)
| ||
Ok, I've created a few scripts to set system volume, mainly: amixer -q -c 0 set Master 64 These are all located in the game directory. When opening a temrinal in the directory, running the scripts with: ./volume10.sh works fine. In my BMax application, using: System_ ("./volume10.sh") does nothing, if not lock my app up. What am I missing here? Best Regards, |
| ||
Should work. Have you tried with a simpler script i.e. just echo Hello World or something? Are you sure that the files are in the same directory? Do the script's permissions allow execution? |
| ||
Yes they allow execution, chmod +x.. etc.. the script is as follows: volume10.sh amixer -q -c 0 set PCM 255 amixer -q -c 0 set Master 64 I've placed the System_("./volume10.sh") before the main loop and it just sits there.. Running the same command $ ./volume10.sh with terminal in the directory works fine. Obviously, I'm assuming that System_ will operate in the game directory.. |