LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Matlab 14.3 startup script not executable via yast2 (https://www.linuxquestions.org/questions/suse-opensuse-60/matlab-14-3-startup-script-not-executable-via-yast2-464620/)

tomatoefish 07-16-2006 03:26 PM

Matlab 14.3 startup script not executable via yast2
 
Hi!

I have a minor problem with starting the matlab license manager automatically at boot time.

I use the standard matlab startup script in /etc/init.d/

#!/bin/sh

case "$1" in
start)
if [ -f /etc/lmboot_TMW ]; then
/etc/lmboot_TMW -u tomatoefish && echo 'MATLAB_lmgrd'
fi
;;
stop)
if [ -f /etc/lmdown_TMW ]; then
/etc/lmdown_TMW > /dev/null 2>&1
fi
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac

exit 0

I can run the script manually, doing script start/stop. However when I try to start this script in yast2 the script stalls the runlevel editor. Stop works as expected. I presume the same happens when I try this at boot time.

I think the error might be related to the fact that the lmboot_TMW has to be run as a user and not as root. The same procedure worked on the latest release of fedora. Any suggestions appreciated?

Thanks in advance!

raskin 07-16-2006 03:39 PM

man su; /-c . Does it help?


All times are GMT -5. The time now is 06:01 AM.