Take a look at the utaction command.  This will run scripts/programs
on disconnection/connection of a Sun Ray session.  It can also use a
delay allowing something to be run after a certain timescale i.e.
killing a users session after an hour of disconnection - this would
allow you users to hot desk to another terminal without loosing
a session.

Under Solaris (not sure about Linux) another really good use of utaction
is to rewrite the users $HOME/.printers, changing the _default entry
to the nearest printer and the _all entry to restrict the other printers
that are visible to the user from that particular Sun Ray. As long as
the applications don't use lp -d or set $PRINTER, automatic follow me
printing should just work.

Paul

On Tue, 2004-11-30 at 18:32, Ellis, Mike wrote:
> Hey peopleâ
> 
> I'm faced with an interesting niche-case where it would be beneficial
> to KILL all session-related processes etc. (including spawned ones for
> the UID associated with that session-login) when a CARD is removed
> from a SunRAY.
> 
> I was wondering if anyone has played around with this at all.
> 
> I think there are 2 ways to go about itâ
> 
> 1) write a (cron) script that using some utsession-CLI-output monitors
> which card is IN-ACTIVE (removed) and kills processes that remain
> running once the card is goneâ. Not real complicated, but not real
> pretty eitherâ.
> 
>  
> 2) the 2nd way might be slightly more elegant, butâ
> 
> In the sessionTypes.props file there is reference to:
> 
>         insertcard.start = /opt/SUNWut/lib/utdtsession -c insertcard
> add
> 
> Is there such a thing that is triggered when a card is REMOVED? If so,
> that could be used to initiate some session-cleanup procedureâ.
> 
> 
> (I guess it would be a REAL bad thing if someone logs in as root
> through their CARDâ pull the card, crash the box... :-)
> 
> ===========================================================================================
> 
> Basically what I'm after is an ability to give people
> non-persistent/temporary SunRAY access with their CARD to individual
> accounts. (and I don't want processes consuming server-resources after
> the person is done using the SunRAY.)
> 
> ( I can't *force* people to LOG OUTâ but I can make them remove their
> badgeâ )
> 
> 
> Any thoughts on the matter would be much appreciated.
> 
> Thanks,
> 
>         -- MikeE
> 
> 
> 
> 
> ______________________________________________________________________
> _______________________________________________
> SunRay-Users mailing list
> [EMAIL PROTECTED]
> http://www.filibeto.org/mailman/listinfo/sunray-users

_______________________________________________
SunRay-Users mailing list
[EMAIL PROTECTED]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to