Execute shellscript _AFTER_ ttwebtopsession finished
Hi,
is it possible to execute a shell-script after
a user logged out from tarantella-ttwebtop ?
I can call my customer shellscripts if the user
starts a Session/Application (modifying unix.exp) - but
if the user finish the session (ttwebtop, tta, application), i
don't know how/where to lauch my "finish-scripts".
Could somebody help me to track down this question ?
Thanks very much
Danny
[460 byte] By [
danny70437] at [2007-11-25 22:00:03]

# 1
This is a question custmer asking me since years and we found no relyable simple way to do this.
One possible solution was to increase the loglevels "*/*/*" to the jserver and parsing the logfiles. What a hard work and tons of data.
So we implemented in our addon product to SSGD a notification modul. This modul is able to send events at the beginning and/or the end of a session. The event parameters are username,application, sessionid, start-stop time and so on.
TAB at 2007-7-5 1:25:58 >

# 3
Hi again,
i looked a bit closer to the loggingmechanism and find the possibility to log the output (like you told me) direct to a java class.
In the package
com.sco.tta.server.log (/opt/taranatella/bin/java/com/sco/tta/server/log)
you will find some log-classes like the default ConsoleSink.
Does somebody know how to write my own MyAppSink ? Is there a desciption of the interface or from which class i has to inherit MyAppSink ?
This would be the easiest integration of getting information out of tarantella.
More questions: Is there a documentation available for devleloping java-apps for tarantella secure global desktop ?
regards
Danny
# 4
Hi,
there a 3 possibilities:
a) write a own loghandler integrated in tarantella (may be the best but the complicated solution) - look to tread http://swforum.sun.com/jive/thread.jspa?threadID=59263&tstart=0 for more infos.
b) log the sessioninformation to a file and parse this file via an external program (look for http://follow.sf.net - a nice java-lib helping you ..)
c) log via SyslogSink to a syslogdaemon (there's a nice java-syslogd available - there you can add your own classes to process the incoming syslog-events). Be carefull: the syslog-rfc has limitation for 1024 char / message - tarantella will send more than 1024 chars !
For all these 3 solutions you have to write a litte parser. Therefor you have to parse the logoutput "server/replication/info" (look at the config-variable array-logfilter (tarantella config list) for more infos ..
Have a nice time
Danny
# 5
exactly, you can find also the logout infos (if billing is enabled) in /opt/tarantella/var/log/billing/minutes.
David
http://websearch.money.cnn.com/websearch/search?magazine=websearch&query=me dia-press-release.com
http://websearch.money.cnn.com/websearch/search?magazine=websearch&query=ho stcube.co.uk