Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Want to Create Unix group using perl script

by JavaFan (Canon)
on Mar 17, 2010 at 14:40 UTC ( #829193=note: print w/replies, xml ) Need Help??


in reply to Re: Want to Create Unix group using perl script
in thread Want to Create Unix group using perl script

It seems groupadd already does everything the OP wants: if the group doesn't exist, it adds it - if it does exist, it prints a message it already exists.

Looks to me the OP just wants a three line shell script. Doesn't seem worth the trouble of writing a Perl wrapper for that.

  • Comment on Re^2: Want to Create Unix group using perl script

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://829193]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2017-02-20 16:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (300 votes). Check out past polls.