I did it with a little program, which checks the output of who, for the 
username and 'ws' (so it only checks actual logins on remote desktops) - it 
returns a zero exit status if there isn't any, or a 1 exit status otherwise.

Then I just stuck a simple if statement in my Xsession script to check the 
exit status, if it fails, it shows you an error message, once you click okay 
you get booted. Should be DM independant.

It's part of the OpenLab distro already, which is free anyway, so if you'd 
like a copy just mail me - it's only about 10 lines of code.

A.J.
On Monday, 4 October 2004 18:31, Jeff Roberts wrote:
> Anybody know how to do this using just ltsp 4.1 and xdm?
>
> On Mon, 4 Oct 2004 08:25:16 -0400 (EDT), Jim McQuillan <[EMAIL PROTECTED]> 
wrote:
> > On Mon, 4 Oct 2004, Eilert wrote:
> > > Hi,
> > >
> > > Sudev Barar schrieb:
> > > > As posted a few weeks ago edit /etc/sysconfig/k12ltsp and change
> > > > PURGE=NO to PURGE=YES
> > >
> > > Thanks for the tip, but I can't find that file in my /etc/sysconfig
> > > directory. This kind of files only reside in /etc/init.d here (Suse
> > > 9.1) and those are symlinks to similarly named scripts. But there is no
> > > ltsp file there. I just found an /etc/ltsp.conf, but it does not
> > > contain any line with PURGE, just data about the package loading for
> > > ltsp 4.1.
> > >
> > > Any idea?
> >
> > The line that Sudev showed is only for the k12ltsp distro.  THat is
> > something that Eric Harrison added.
> >
> > Jim McQuillan
> > [EMAIL PROTECTED]
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> > Use IT products in your business? Tell us what you think of them. Give us
> > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
> > more http://productguide.itmanagersjournal.com/guidepromo.tmpl
> > _____________________________________________________________________
> > Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
> >       https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> > For additional LTSP help,   try #ltsp channel on irc.freenode.net
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _____________________________________________________________________
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>       https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.freenode.net

-- 
A.J Venter
Lead Developer, DireqLearn 
082 726 5103
http://www.direqlearn.org
http://www.direqlearn.net/olce
http://silentcoder.blogsite.org


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to