Re: IDL 8.2 and Ubuntu 16.04 licence issues [message #94734 is a reply to message #94733] |
Wed, 20 September 2017 07:54   |
Markus Schmassmann
Messages: 129 Registered: April 2016
|
Senior Member |
|
|
On 09/20/2017 04:17 PM, plana@uesc.br wrote:
> I recently upgrade ma machine with Ubuntu 16.04 and I had some
> difficulty to run my IDL8.2 licence on it. After several exchanges with
> IDL help desk I can run it but if I reboot the machine I have to follow
> a protocol to kill some processes, wait to open a port and run the lmgrd
> prog. I would like to know if there is a way to do that automatically ?
> Thanks
>
> $ mkdir /usr/tmp/
> $ cd /usr/tmp
> $ touch .flexlm
> $ chmod 666 .flexlm
>
> After that finalize lmgdr pendence:
> $ killall lmgrd
> $ killall idl_lmgrd
>
> Do it again after 30s to be sure that all executable were closed.
>
> Then wait for a 1min, necessary for the system open ports 1700 and 1701, and then run:
>
> $ /usr/local/exelis/idl82/bin/bin.linux.x86/lmgrd -c /usr/local/exelis/license/license.dat -l /usr/local/exelis/license/lmgrd.log &
assuming you are not asking about a server, could you run it from
.bash_profile ?
add to ~~~~~~~~~~ .bash_profile ~~~~~~~~~~
readyIDL.sh &
~~~~~~~~~~ file readyIDL.sh ~~~~~~~~~~
#!/bin/bash
if ![ -d /usr/tmp/ ]; then mkdir /usr/tmp/; fi
curDir=`pwd`
cd /usr/tmp/
touch .flexlm
chmod 666 .flexlm
killall lmgrd
killall idl_lmgrd
sleep 30
killall lmgrd
killall idl_lmgrd
sleep 60
/usr/local/exelis/idl82/bin/bin.linux.x86/lmgrd -c
/usr/local/exelis/license/license.dat -l
/usr/local/exelis/license/lmgrd.log &
cd $curDir
notify-send 'readyIDL' 'IDL should be ready to use now, if not debug
readyIDL.sh'
~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~
it might need some debuging, and I'm not a bash expert, but even if half
of it is wrong it might give you some ideas on how to proceed...
Good luck, Markus
|
|
|