Command not found

eliz
Posts: 2
Joined: Wed Jan 24, 2001 12:10 pm

Command not found

Post by eliz »

I get a "Command not found" message when I try to use gw.

Webinator is installed in a subdirectory which will become a virtual host in the near future.

From the webinator/bin directory all of the following result in the same error:
gw -index
gw -wipe
gw -mOPT.txt "&urls"

I also tried these same commands from the directory one level up.

I am the root user and am logged in as such.

What am I doing wrong?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Command not found

Post by mark »

That simply means that neither the webinator/bin directory nor the current directory (.) are in your PATH so the shell can't find it. If you're in the webinator/bin directory use:
./gw -wipe
If you're at somewhere else use the full path to gw:
/usr/local/etc/httpd/htdocs/webinator/bin/gw -wipe
(or add the webinator/bin directory to your PATH or make a symlink somewhere in your path to webinator/bin/gw)

Also, you should not be running webinator as root. You should designate some non-root user for using webinator and always run it as that user. The installation attempts to do this by making gw and texis setuid.