07-04-2006
Thanks for those replies.
SCO Unix does not have a sudo option. I suspect this is a Linux utility.
The enable command, along with disable, is part of the lp set used to enable and disable printers. It can be used to temporarily hold print jobs, and unlike accept/reject, still allows print jobs to be spooled.
I've tried setting the suid bit and putting the command inside another script with full execute permission, but it appears that the requirement that it is run by root is hard-coded into the executable.
Any other ideas?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. UNIX for Advanced & Expert Users
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
3. Shell Programming and Scripting
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
4. Shell Programming and Scripting
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
5. UNIX for Dummies Questions & Answers
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
6. Solaris
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... (2 Replies)
Discussion started by: learnit
2 Replies
7. AIX
I have searched many times but nothing found. Somebody help please :(:(:( (1 Reply)
Discussion started by: bobochacha29
1 Replies
8. UNIX for Dummies Questions & Answers
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
9. Shell Programming and Scripting
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
LEARN ABOUT REDHAT
disable
enable(8) Easy Software Products enable(8)
NAME
disable, enable - stop/start printers and classes
SYNOPSIS
disable [ -E ] [ -c ] [ -h server ] [ -r reason ] destination(s)
enable [ -E ] destination(s)
DESCRIPTION
enable starts the named printers or classes.
disable stops the named printers or classes. The following options may be used:
-c
Cancels all jobs on the named destination.
-r [ reason ]
Sets the message associated with the stopped state. If no reason is specified then the message is set to "Reason Unknown".
The -E option forces encryption when connecting to the server.
COMPATIBILITY
The CUPS versions of disable and enable may ask the user for an access password depending on the printing system configuration. This dif-
fers from the System V versions which require the root user to execute these commands.
SEE ALSO
accept(8), cancel(1), lp(1), lpadmin(8), lpstat(1), reject(8), CUPS Software Administrators Manual, http://localhost:631/documentation.html
COPYRIGHT
Copyright 1993-2002 by Easy Software Products, All Rights Reserved.
23 January 2001 Common UNIX Printing System enable(8)