"Enable" command location?


 
Thread Tools Search this Thread
Operating Systems Solaris "Enable" command location?
# 1  
Old 12-27-2013
"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

Code:
# enable hpsc211

I get

Code:
/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

Last edited by learnit; 12-27-2013 at 01:33 PM.. Reason: message did not show up initially for some reason
This User Gave Thanks to learnit For This Post:
# 2  
Old 12-27-2013
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.
# 3  
Old 12-27-2013
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

3. AIX

How to enable "TCP MD5 Signatures" and "https" on AIX?

I have searched many times but nothing found. Somebody help please :(:(:( (1 Reply)
Discussion started by: bobochacha29
1 Replies

4. UNIX for Dummies Questions & Answers

Unix "look" Command "File too large" Error Message

I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this: $ look "string" "/home/patrick/filename.txt" However, this gives me the following message: "look: /home/patrick/filename.txt: File too large" So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. Shell Programming and Scripting

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

7. UNIX for Advanced & Expert Users

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

8. UNIX for Dummies Questions & Answers

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

9. UNIX for Advanced & Expert Users

"enable" command

Hi I'm root on a SCO 5.0.5 Unix system. My printer 'enable' command can only be executed by root. On other versions of Unix I've used, ordinary users can use enable/disable on their own printer requests. Is there a way of allowing all users to execute 'enable'? At the moment they get... (8 Replies)
Discussion started by: dor35
8 Replies
Login or Register to Ask a Question