Commit bc1ec6a3 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add autogen of webxxx scripts.

parent c3fac28c
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2006 University of Utah and the Flux Group.
# Copyright (c) 2000-2007 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");
......@@ -97,19 +97,19 @@ if ($_delattrs) {
# Fire off the modify operation first
if ($mod_command_string) {
SUEXEC($uid, "nobody", "webnodeattributes -m ".
SUEXEC($uid, "nobody", "webnode_attributes -m ".
"$mod_command_string $node_id",
SUEXEC_ACTION_DIE);
}
# Next, add attributes
if ($add_command_string) {
SUEXEC($uid, "nobody", "webnodeattributes -a ".
SUEXEC($uid, "nobody", "webnode_attributes -a ".
"$add_command_string $node_id",
SUEXEC_ACTION_DIE);
}
# Finally, delete attributes.
if ($del_command_string) {
SUEXEC($uid, "nobody", "webnodeattributes -r ".
SUEXEC($uid, "nobody", "webnode_attributes -r ".
"$del_command_string $node_id",
SUEXEC_ACTION_DIE);
}
......
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2002, 2004, 2006 University of Utah and the Flux Group.
# Copyright (c) 2000-2002, 2004, 2006, 2007 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");
......@@ -76,7 +76,7 @@ if ($isadmin) {
#
# Pass it off to the script. It will check the arguments.
#
SUEXEC($uid, "nobody", "webnodecontrol $command_string $node_id",
SUEXEC($uid, "nobody", "webnode_control $command_string $node_id",
SUEXEC_ACTION_DIE);
echo "<center>
......
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2006 University of Utah and the Flux Group.
# Copyright (c) 2000-2007 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");
......@@ -88,7 +88,7 @@ function Show($which, $arg1, $arg2)
$flags = ($showevents ? "-e -a" : "-b -e -f");
$result = exec("$TBSUEXEC_PATH $uid $TBADMINGROUP ".
"webreport $flags $pid $eid",
"webtbreport $flags $pid $eid",
$output, $retval);
$html = "<pre><div align=left id=\"showexp_details\" ".
......
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2006 University of Utah and the Flux Group.
# Copyright (c) 2000-2007 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");
......@@ -210,8 +210,9 @@ else {
$flags = "-b -e -f";
}
$result = exec("$TBSUEXEC_PATH $uid $TBADMINGROUP webreport $flags $pid $eid",
$output, $retval);
$result =
exec("$TBSUEXEC_PATH $uid $TBADMINGROUP webtbreport $flags $pid $eid",
$output, $retval);
echo "<XMP>\n";
for ($i = 0; $i < count($output); $i++) {
......
......@@ -2517,7 +2517,8 @@ function SHOWNODEHISTORY($node_id, $showall = 0, $count = 20, $reverse = 1)
if ($count) {
$opt .= " -n $count";
}
if ($fp = popen("$TBSUEXEC_PATH nobody nobody webnodehistory $opt $node_id", "r")) {
if ($fp = popen("$TBSUEXEC_PATH nobody nobody ".
" webnode_history $opt $node_id", "r")) {
if (!$showall) {
$str = "Allocation";
} else {
......
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2006 University of Utah and the Flux Group.
# Copyright (c) 2006, 2007 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");
......@@ -51,8 +51,9 @@ else {
$flags = "-b -e -f";
}
$result = exec("$TBSUEXEC_PATH $uid $TBADMINGROUP webreport $flags $pid $eid",
$output, $retval);
$result =
exec("$TBSUEXEC_PATH $uid $TBADMINGROUP webtbreport $flags $pid $eid",
$output, $retval);
header("Content-Type: text/plain");
for ($i = 0; $i < count($output); $i++) {
......
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2004, 2006 University of Utah and the Flux Group.
# Copyright (c) 2000-2004, 2006, 2007 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");
......@@ -140,7 +140,7 @@ echo "<h2>Starting node update. Please wait a moment ...
flush();
$retval = SUEXEC($uid, "$pid,$unix_gid",
"webnodeupdate -b $pid $eid" .
"webnode_update -b $pid $eid" .
(isset($nodeid) ? " $nodeid" : ""),
SUEXEC_ACTION_IGNORE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment