[Sderby] Auto log off off children

David Robson rob at colournet.org
Mon Oct 11 19:27:20 BST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 10 October 2004 23:51, Laurie L Proud wrote:
> Hi Gang,
>
> I would like to incorporate a timed log off at childrens bed-time
> automatically prompting them to save work & log off. With a bump offf
> if non compliance.
>
> How would that be done in SuSE 9.1 with KDE
>
> Each child has their own user account.
>
> Thank-you regards
>
> Laurie

hey,

i did sort of say it was easy enough to do in a crude shell script at the lug, 
so sure enough, here one is... it doesnt do any "warning" or anything, it 
will just kill them as soon as it is run.

it should work "as is", but it assumes your user's normal shell of choice is 
bash, you can change this by editing GOOD_SHELL="/bin/bash" at the top of the 
script.

If you plan on killing / disabling anyone other than yourself, you will need 
to run this script as root.

I'm sure the some of the list will think of a better way to do various parts 
of the script and maybe add a timer or something :)

- -- 
Rob

GnuPG key: 1024D/309586CA
Fingerprint: 952A 4EB9 CC81 F30A 35CF  D473 BF12 FD80 3095 86CA
Key available at http://pgp.mit.edu

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBatB9vxL9gDCVhsoRAtxNAKC4qCYmuRdlJITcSbTEt4beo9uC1gCguA0g
o7P5u32CJoMTy5L1ET+0lPY=
=xENq
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: change.sh
Type: application/x-shellscript
Size: 1293 bytes
Desc: not available
Url : http://mailman.lug.org.uk/pipermail/sderby/attachments/20041011/377517e5/change.bin


More information about the Sderby mailing list