Skip to content
GitLab
Menu
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
bf7c4775
Commit
bf7c4775
authored
Mar 07, 2006
by
Leigh B. Stoller
Browse files
A minor perl 5.8 fix.
Also a change to the rsync used to duplicate an experiment; do not preserved permissions.
parent
ec8e8cef
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/batchexp.in
View file @
bf7c4775
...
@@ -622,7 +622,7 @@ if (! ($frontend || $batchmode)) {
...
@@ -622,7 +622,7 @@ if (! ($frontend || $batchmode)) {
#
#
my
@localnodes
=
ExpNodes
(
$pid
,
$eid
,
1
);
my
@localnodes
=
ExpNodes
(
$pid
,
$eid
,
1
);
if
(
defined
(
@localnodes
)
&&
scalar
(
@localnodes
)
>
2
)
{
if
(
@localnodes
&&
scalar
(
@localnodes
)
>
2
)
{
my
$vlans_result
=
my
$vlans_result
=
DBQueryFatal
("
select pid from virt_lans
"
.
DBQueryFatal
("
select pid from virt_lans
"
.
"
where pid='
$pid
' and eid='
$eid
'
");
"
where pid='
$pid
' and eid='
$eid
'
");
...
@@ -716,6 +716,7 @@ TBExptSetSwapUID($pid, $eid, $dbuid);
...
@@ -716,6 +716,7 @@ TBExptSetSwapUID($pid, $eid, $dbuid);
#
#
# Close up the log file so the webpage stops.
# Close up the log file so the webpage stops.
#
#
print
"
Experiment
$pid
/
$eid
has been successfully created!
\n
";
TBExptCloseLogFile
(
$pid
,
$eid
);
TBExptCloseLogFile
(
$pid
,
$eid
);
#
#
...
@@ -1163,7 +1164,7 @@ sub CopyInArchive()
...
@@ -1163,7 +1164,7 @@ sub CopyInArchive()
if
(
-
e
$srcdir
)
{
if
(
-
e
$srcdir
)
{
print
"
Copying experiment archive from
${srcdir}
\n
";
print
"
Copying experiment archive from
${srcdir}
\n
";
system
("
$RSYNC
-
ax
--delete
${srcdir}
/
$dstdir
");
system
("
$RSYNC
-
rtgoDlz
--delete
${srcdir}
/
$dstdir
");
if
(
$?
)
{
if
(
$?
)
{
fatal
("
CopyInArchive: Failed to copy
${srcdir}
to
$dstdir
");
fatal
("
CopyInArchive: Failed to copy
${srcdir}
to
$dstdir
");
}
}
...
...
Write
Preview
Supports
Markdown
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