WeBWorK Main Forum

wwsh command not found (addadmin)

wwsh command not found (addadmin)

by Tim Alderson -
Number of replies: 3

I am attempting to add an admin to an unarchived course. 

Within /opt/webwork/webwork2/bin I see wwsh listed,  but  running the following from /opt/webwork/webwork2/bin  gives  "Command 'wwsh' not found".

wwsh MathcourseName addadmin

(also tried sudo).

We are running 2.16.

Any ideas on what I might be missing?


In reply to Tim Alderson

Re: wwsh command not found (addadmin)

by Glenn Rice -
It sounds like you have not added /opt/webwork/webwork2/bin to your path. Have you added "export PATH=$PATH:/opt/webwork/webwork2/bin" to your .bashrc file? See https://webwork.maa.org/wiki/Installation_Manual_for_2.16_on_Ubuntu#Configuring_the_Shell.
In reply to Glenn Rice

Re: wwsh command not found (addadmin)

by Glenn Rice -
You will need to give the full path to the addadmin file. So you probably need to execute "wwsh courseName /opt/webwork/webwork2/bin/addadmin". That is assuming that your webwork2 installation is in /opt/webwork. Otherwise you will need to adjust the path.
In reply to Glenn Rice

Re: wwsh command not found (addadmin)

by Tim Alderson -
Thank you Glenn.

That did the trick, but also had to change the command to

wwsh MathcourseName ./addadmin

instead of

wwsh MathcourseName addadmin.