[K12OSN] how to run script

Martin Woolley sysadmin at handsworth.bham.sch.uk
Thu Sep 8 07:37:28 UTC 2005


On Wednesday 07 September 2005 15:15, Liam Marshall wrote:
> I have a little .sh script that basically does the same thing that a
> user has to do the first time they go to use staroffice(ie the setup
> script that copies the workstation files into their home dir and changes
> ownership ,etc after they answer a few questions.)  I have 600 plus
> users that need to run this script, SOME of which I teach, some I DO NOT.

If you're running kde, one way is to pop a link to your script into 
$HOME/.kde/Autostart directory.  This might be tedious to do if you have lots 
of users.   Another method is to modify /etc/X11/xdm/Xsession; this is what 
we add to the script (somewhere near the top).

# do any hgs initial setup for non system accounts
if (( $UID > 499)) ; then
  /usr/local/bin/hgssetup
fi
-- 
Regards
Martin Woolley
ICT Support
Handsworth Grammar School
Isis Astarte Diana Hecate Demeter Kali Inanna


*************************************************************
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity 
to whom they are addressed. If you have received this email 
in error please notify postmaster at bgfl.org

The views expressed within this email are those of the 
individual, and not necessarily those of the organisation
*************************************************************




More information about the K12OSN mailing list