<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Les,<br>
<br>
THANKS the empty spaces were the culprit, now the testing starts. The
bit of code is simple enough but how do I integrate within that
original script ???<br>
<br>
thks<br>
norbert<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:les@futuresource.com">les@futuresource.com</a> wrote:<br>
<blockquote type="cite"  cite="mid1095864975.24793.27.camel@moola.futuresource.com">
  <pre wrap="">On Wed, 2004-09-22 at 08:42, norbert wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">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
!!!!!  :-[ 
    </pre>
  </blockquote>
  <pre wrap=""><!---->
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.

  </pre>
  <blockquote type="cite">
    <pre wrap="">Second how could the script be modified, once it works, to be applied
only to a group of users?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
if  `groups |grep -q mygroup`
 then
 ...conditional stuff...
fi

---
  Les Mikesell
    <a class="moz-txt-link-abbreviated" href="mailto:les@futuresource.com">les@futuresource.com</a>



_______________________________________________
K12OSN mailing list
<a class="moz-txt-link-abbreviated" href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/k12osn">https://www.redhat.com/mailman/listinfo/k12osn</a>
For more info see <a class="moz-txt-link-rfc2396E" href="http://www.k12os.org"><http://www.k12os.org></a>
  </pre>
</blockquote>
</body>
</html>