mathematica licences
Sometimes you have to check who's using all these licences. I small cgi-Script will help you
mathematica
There is no possibility to check who's using a mathematica licencs with a remote connection.a script
You can write a small script that writes it's output to a network connection using UNIXs inetd service.First write a script, lets say /usr/local/bin/mathcgi
#!/bin/sh
echo "<html><body>"
echo "<pre>"
ID=`/bin/ps -edaf | grep mathlm | grep -v grep | awk '{print $2}'`
kill -USR1 $ID && cat /tmp/mathlm.dump
echo "</pre>"
echo "</body<>/html>"
exit 0
Please note, that you may use different parameter for grep with an operating system other than IRIX. With Linux the paramter 'auxw' should work.Don't forget to make it executable (755).
/etc/inetd.conf
Write a line to your /etc/inetd.conf that refers to your scriptmathcgi stream tcp nowait root /usr/local/bin/mathcgi mathcgi
/etc/services
In a last step, make a new entry to your /etc/services like this# Michael Renner extension for mathlm mathcgi 5129/tcp # Um die Lizenzen abzufragenRestart the inetd and connect to the machine with your browser, e.g. http://cashew.local:5129
Mathlm written by Sam Roseman. Please direct queries/comments to the following places: Technical Support: support@wolfram.com (217-398-6500) Comments/Suggestions: suggestions@wolfram.com /usr/global/mathematica_4.0.1/SystemFiles/LicenseManager/Binaries/SGI/mathlm running. Version: 4.0. Host: cashew.local. PID: 6984 Mathematica password file: /usr/global/mathematica_4.0.1/SystemFiles/LicenseManager/Binaries/SGI/../../../../Configuration/Licensing/mathpass Restriction file: None Class B processes: 2 MathKernel processes authorized; 0 in use. 2 Mathematica processes authorized; 1 in use. # Program User Host 3 Mathematica renner turnip mathlm statistics: uptime: 2 days 3 hrs total transactions: 1 process starts: 1 process denials: 0 restriction file denials: 0 timeouts: 0 For the latest information on Mathematica system administration see http://www.wolfram.com/sysadminYou see the user and it's host in red letters.