[K12OSN] Multiple logins ???

Les Mikesell les at futuresource.com
Wed Sep 22 14:56:15 UTC 2004


On Wed, 2004-09-22 at 08:42, norbert wrote:
> Hi,
> 
> I've tried the changes, i.e. the "sleep" & removing the "done" but I
> get the same error message "syntax error: unexpected end of file" WHY
> !!!!!  :-[ 

The <<-EOM syntax starts a 'here document' (that is, input in-line
in the script) that is terminated by the arbitrary text token used
(EOM in this case) appearing as the only thing on a subsequent line.
The '-' part of the command allows leading tabs in front of the text
and token but you probably have spaces or trailing white space.
Remove the white space around EOM and it should work.

> Second how could the script be modified, once it works, to be applied
> only to a group of users?

if  `groups |grep -q mygroup`
 then
 ...conditional stuff...
fi

---
  Les Mikesell
    les at futuresource.com






More information about the K12OSN mailing list