Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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?
[Discipulus]: ++erix

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2017-09-25 13:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (280 votes). Check out past polls.

    Notices?