in reply to adding a group to the Unix System

Here are a few things for you to try :-

  1. Does the echo show anything?
  2. What happens when you remove echo from your command string?
  3. Do you have the correct permissions to run groupadd ?
  4. what does system return ?

Try the suggestions in Basic debugging checklist to work out what's going wrong.

Replies are listed 'Best First'.
Re^2: adding a group to the Unix System
by deyaneria (Acolyte) on Mar 15, 2015 at 18:08 UTC
    The echo just did what it was suppose to do and printed the parts but taking it out fixed the issue now I can see that the group was created when I leave the script and cat /etc/group. This was only a part of the entire program I had to write. However it was only part not working properly per the parameters of the project.