"Enable" command location?

HI-

I am troubleshooting a printer problem in Solaris 8. New to this.

From the printer server, the printer is accepting requests but it is disabled.

I try

# enable hpsc211

I get

/usr/lib/enable: not found

enable is found in /usr/bin not /usr/lib.

Why can I not use the "enable" command?

I am logged in as su.

Any suggestions?

Thanks

1 Like

Sometimes a script wraps a command, and a script must have its interpreter's right absolute path after #! on the first line, see man execvp(): Man Page for execvp (opensolaris Section 2) - The UNIX and Linux Forums If the interpreter path is wrong, you get this sort of error. Do a 'which enable', do a file command on that file, and if not an object file, look at the file. One script enable may call another enable using the #! line.

enable is also a bash built-in so you have to be careful not to call the wrong "enable" when attempting to bring up a printer.