Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
304f65dc
Commit
304f65dc
authored
Jan 24, 2006
by
Leigh B. Stoller
Browse files
Make sure the ltlogs directory gets created 775 so the next person can
make changes. Also set the umask to 0002 for the loghole run.
parent
b36d344a
Changes
1
Hide whitespace changes
Inline
Side-by-side
event/linktest/run_linktest.pl.in
View file @
304f65dc
#!/usr/bin/perl -wT
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
5
University of Utah and the Flux Group.
# Copyright (c) 2000-200
6
University of Utah and the Flux Group.
# All rights reserved.
#
use
strict
;
...
...
@@ -63,6 +63,11 @@ delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};
$|
=
1
;
#Turn off line buffering on output
#
# Make sure log files get created so project members can delete them!
#
umask
(
0002
);
#
# Parse command arguments. Once we return from getopts, all that should be
# left are the required arguments.
...
...
@@ -437,6 +442,7 @@ sub run_loghole {
system
("
rm -rf
$ltlogs
");
system
("
mkdir -p
$ltlogs
");
system
("
chmod 775
$ltlogs
");
system
("
$LOGHOLE
-e
$pid
/
$eid
sync -n -l
$ltlogs
-r /var/emulab/logs
"
.
"
>
$ltlogs
/loghole.out 2>&1
");
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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