Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Scripting Help

by NetWallah (Canon)
on Dec 14, 2015 at 19:26 UTC ( [id://1150268]=note: print w/replies, xml ) Need Help??


in reply to Scripting Help

Your "groupadd" code uses $group_id which does not seem to be defined.

The linux command for deleting groups is "groupdel", not "delgroup".

Error-checking Linux return codes (use $? >> 8) would certainly help.

        "I can cast out either one of your demons, but not both of them." -- the XORcist

Replies are listed 'Best First'.
Re^2: Scripting Help
by dustin.brown1 (Initiate) on Dec 14, 2015 at 20:13 UTC
    I corrected the groupdel part. Not sure where group_id should be defined.
      Just take out the "-g $group_id" from the groupadd command.

      Let the system generate a new gid for you.

              "I can cast out either one of your demons, but not both of them." -- the XORcist

        Thank you, at least that portion is fixed. Now to figure out what the above users are teaching me =D

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1150268]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-20 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found