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
fea89442
Commit
fea89442
authored
Apr 11, 2012
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generate a compressed version of the statis advertisement.
parent
7b30c2d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
protogeni/scripts/ch_daemon.in
protogeni/scripts/ch_daemon.in
+9
-1
No files found.
protogeni/scripts/ch_daemon.in
View file @
fea89442
#!/usr/bin/perl -w
#
# GENIPUBLIC-COPYRIGHT
# Copyright (c) 2008-201
1
University of Utah and the Flux Group.
# Copyright (c) 2008-201
2
University of Utah and the Flux Group.
# All rights reserved.
#
use
strict
;
...
...
@@ -190,6 +190,14 @@ sub ProbeCMs()
print
OUT
"
\n
";
close
(
OUT
);
# Make a comrpessed copy.
system
("
cat
$ADDIR
/
$urn
| gzip >
$ADDIR
/
${urn}
.gz
");
if
(
$?
)
{
notify
("
Could not compress
$ADDIR
/
$urn
\n
");
unlink
("
$ADDIR
/
${urn}
.gz
")
if
(
-
e
"
$ADDIR
/
${urn}
.gz
");
}
# Save the name so we can write the text file at the end.
$ads
{
$urn
}
=
$urn
;
}
...
...
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