LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 07-16-2006, 03:26 PM   #1
tomatoefish
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Rep: Reputation: 0
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!
 
Old 07-16-2006, 03:39 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
man su; /-c . Does it help?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
When an executable turned to a script file,...??! lucky6969b Programming 8 03-08-2006 02:26 AM
Beginner on Scilab, matlab script conversion munichtexan Linux - Software 6 12-08-2005 06:42 PM
shell script to execute my c executable cranium2004 Programming 2 04-06-2005 05:26 AM
How do you turn an executable into a shell script? Thaidog Linux - Newbie 1 09-20-2004 07:20 PM
Make a shell script executable but not readable davholla Linux - Security 5 03-24-2004 03:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 11:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration