WeBWorK shell - wwsh

From WeBWorK_wiki
Revision as of 15:39, 5 August 2011 by Aubreyja (talk | contribs) (Created page with 'wwsh - the WeBWorK shell === SYNOPSIS === wwsh <u>COURSE ID</u> $stephen = $db -> getUser("stephen"); print $me -> status(); $stephen -> status("C"); $db -> putUser($user)…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

wwsh - the WeBWorK shell

SYNOPSIS

wwsh COURSE ID
$stephen = $db -> getUser("stephen");
print $me -> status();
$stephen -> status("C");
$db -> putUser($user);
$pl = $db -> getPermissionLevel("sdesanto");
$pl -> permission(10);
$db -> putPermissionLevel($pl);

DESCRIPTION

print $me->status(

The WeBWorK shell is a command line script for system administrators. The script export WEBWORK_ROOT=/opt/webwork/

webwork2/

/opt/webwork/webwork2/bin/wwsh bridgeport-math110

Then I did

$me = $db -> getUser("aubreyja"); print $me->status();

which returned D for dropped. Same goes for sdesanto. I re-enrolled you with

$stephen -> status("C");

I think now you should be able to login and fix things.

$db -> putUser($user);

$pl = $db -> getPermissionLevel("sdesanto")

$pl -> permission(10); $db -> putPermissionLevel($pl);