Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
48c908f1
Commit
48c908f1
authored
Nov 13, 2000
by
Kristin Wright
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update unix group query to reflect no group table decision
parent
799e9fdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
tbsetup/mkacct
tbsetup/mkacct
+2
-5
No files found.
tbsetup/mkacct
View file @
48c908f1
#!/usr/local/bin/perl -w
###
### $Id: mkacct,v 1.1
6
2000-11-
02 17:26:21 newbold
Exp $
### $Id: mkacct,v 1.1
7
2000-11-
13 22:32:45 kwright
Exp $
###
### Address 'lkw' comments:
### Break up into subroutines, possibly libraries. We'll
...
...
@@ -128,13 +128,10 @@ while (@row = $sth->fetchrow_array) {
##
print
"
Selecting group ID for experiment...
";
$cmd
=
"
select unix_gid from groups as g
"
.
"
left join proj_grps as pg on g.gid = pg.gid
"
.
"
left join projects as p on pg.pid = p.pid
"
.
"
select unix_gid from projects as p
"
.
"
left join experiments as e on e.pid = p.pid
"
.
"
where e.eid = '
$eid
'
";
$sth
=
$dbh
->
query
(
$cmd
);
my
$unix_gid
=
65533
;
# "nogroup"...
if
(
@row
=
$sth
->
fetchrow_array
)
{
$unix_gid
=
$row
[
0
];
print
"
$unix_gid
\n
";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment