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
d1e8dfac
Commit
d1e8dfac
authored
Mar 26, 2001
by
Leigh B. Stoller
Browse files
Add nsfile to email report.
parent
227643da
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/batch_daemon.in
View file @
d1e8dfac
...
...
@@ -39,6 +39,7 @@ my $dirname;
my
$eid
;
my
$pid
;
my
$logname
;
my
$nsfile
;
my
$user_name
=
"
Batch Daemon
";
my
$user_email
=
"
$TBOPS
";
...
...
@@ -159,7 +160,7 @@ sub runexp($)
# global var
$dirname
=
"
$batchdir
/
$pid
-
$eid
";
my
$nsfile
=
"
$dirname
/
$eid
.ns
";
$nsfile
=
"
$dirname
/
$eid
.ns
";
#
# Get some user information.
...
...
@@ -398,6 +399,15 @@ sub fatal()
close
(
IN
);
unlink
("
$logname
");
}
if
(
defined
(
$nsfile
)
&&
open
(
IN
,
"
$nsfile
"))
{
print
MAIL
"
\n\n
---------
\n\n
";
while
(
<
IN
>
)
{
print
MAIL
"
$_
";
}
close
(
IN
);
}
close
(
MAIL
);
exit
(
-
1
);
...
...
@@ -460,6 +470,16 @@ sub email_status($)
}
close
(
IN
);
}
if
(
defined
(
$nsfile
)
&&
open
(
IN
,
"
$nsfile
"))
{
print
MAIL
"
\n\n
---------
\n\n
";
while
(
<
IN
>
)
{
print
MAIL
"
$_
";
}
close
(
IN
);
}
close
(
MAIL
);
}
...
...
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