View Single Post
Old 03-25-2012, 11:16 AM   #15
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by paulroberthill View Post
BTW, anyone have an idea why I can't launch fbgnuboy from a Kite script? The same script runs just fine from a ssh shell:
#!/bin/sh
/usr/bin/killall -stop cvm
/mnt/us/fbgnuboy/fbgnuboy /mnt/us/fbgnuboy/tetris.gb
/usr/bin/killall -cont cvm
You did not provide enough details for an accurate reply. It would help to see the command that kite uses to launch your script. Does kite launch your script in the background (with '&' appended)? Some scripts do not run correctly when launched in the background (showing "Stopped (tty output)" error messages). Perhaps you need to remove a trailing '&' from the command line.

Also, you can simplify your script commands a bit with a "cd" (some programs may even require this):

#!/bin/sh
killall -stop cvm
cd /mnt/us/fbgnuboy
./fbgnuboy tetris.gb
killall -cont cvm
Quote:
Originally Posted by hostar View Post
Have you made your script executable?
Scripts on the USB drive (/mnt/us) are ALWAYS executable because vfat partitions do not have an execute attribute. If you do "ls -al /mnt/us" you will see that ALL files are "+x" even after trying a "chmod -x" on any of them.

Last edited by geekmaster; 03-25-2012 at 11:57 AM.
geekmaster is offline   Reply With Quote