Created
October 1, 2014 09:20
-
-
Save theist/f71bf38a506e1c0824d7 to your computer and use it in GitHub Desktop.
gam script creator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
my $group = shift; | |
my @users = (); | |
my $gam_call = "python gam.py"; | |
die "please specify a group" unless $group; | |
while (<>) { | |
chomp; | |
push(@users, $_); | |
} | |
print "$gam_call create group $group\n"; | |
print "$gam_call update group $group is_archived true\n"; | |
print "$gam_call update group $group max_message_bytes 25M\n"; | |
for $user (@users) { | |
print "$gam_call update group $group add member $user\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment