[CM] Grace,s7, system

2013-04-05 Thread James Hearon
Hi, I'm wondering what 65280 means. I'm trying to use the s7 system call from Grace, ex. (system /home/Grace/test.sh) It works fine on some things, such as if .sh contains: #! /bin/sh cd /opt/snd-13.5 ./snd 808loop.wav and returns 0, but on other items I just get 65280 returned in Grace.

Re: [CM] Grace,s7, system

2013-04-05 Thread Bill Schottstaedt
system returns an integer that in C can be decoded with the macros in sys/waits.h, or something like that. I think 65280 = #xff00 so that means the child process exited normally. Just a quick guess after looking at /usr/include/bits/waitstatus.h. Not sure this is helpful.