02-21-2010
Quote:
Originally Posted by
sponnusa
thanks for the reply.
I know O_DIRECT might work, and I tried with O_DIRECT, but it fails for some reason.
Try printing the error message with perror() to find out what "some reason" is. As a stubborn programmer would say, don't give up until you know why it's not working.
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I want to do a low level format like in windows (C:\format c:) but I don't know how it works in unix or linux.. Can somebody help me ? thnx :) (3 Replies)
Discussion started by: day
3 Replies
2. HP-UX
Hello
How to access to a second hard disk on a HP-UX system?
Thanks (3 Replies)
Discussion started by: ouniss
3 Replies
3. IP Networking
Hi,
What is the best reference that gives in detail on nic cards configuration , assigning multiple ip addresses to a single interface, netlink library etc and all basic stuff at this level..?
Thanks (2 Replies)
Discussion started by: Gopi Krishna P
2 Replies
4. AIX
Hello All
I have a system running AIX 61 shared uncapped partition (with 11 physical processors, 24 Virtual 72GB of Memory) .
The output from NMON, vmstat show a high run queue (60+) for continous periods of time intervals, but NO paging, relatively low I/o (6000) , CPU % is 40, Low network.... (9 Replies)
Discussion started by: IL-Malti
9 Replies
5. Programming
Hi friends,
I hope everyone is fine and doing well. I queried in my previous thread about the low-level qualities of C/C++ languages.I really thank you people for explaining, it was really helpful. One more ambiquity that I have in my mind is regarding the unix system calls like open, creat,... (1 Reply)
Discussion started by: gabam
1 Replies
6. Programming
Hi friends,
I hope everyone is doing well and fine. I have always been hearing that C/C++ are relatively low-level as compared to Java/C# etc. Could you please tell me some low-level qualities of C/C++? And I think disk deframenters are written in C/C++, please correct me if I am wrong. And please... (5 Replies)
Discussion started by: gabam
5 Replies
7. Programming
How to use X11 without Xlib not XCB? How draw window directly on low level?
I must use anyway window manager like Motif?
I have ridden that X11 has server-client architecture, client send via TCP/IP to port 6000 request for primitives and get replies.
Where is detailed description of it? In X11... (0 Replies)
Discussion started by: AndrzejB
0 Replies
LEARN ABOUT MOJAVE
accept
cupsaccept(8) Apple Inc. cupsaccept(8)
NAME
cupsaccept/cupsreject - accept/reject jobs sent to a destination
SYNOPSIS
cupsaccept [ -E ] [ -U username ] [ -h hostname[:port] ] destination(s)
cupsreject [ -E ] [ -U username ] [ -h hostname[:port] ] [ -r reason ] destination(s)
DESCRIPTION
The cupsaccept command instructs the printing system to accept print jobs to the specified destinations.
The cupsreject command instructs the printing system to reject print jobs to the specified destinations. The -r option sets the reason for
rejecting print jobs. If not specified, the reason defaults to "Reason Unknown".
OPTIONS
The following options are supported by both cupsaccept and cupsreject:
-E Forces encryption when connecting to the server.
-U username
Sets the username that is sent when connecting to the server.
-h hostname[:port]
Chooses an alternate server.
-r "reason"
Sets the reason string that is shown for a printer that is rejecting jobs.
CONFORMING TO
The cupsaccept and cupsreject commands correspond to the System V printing system commands "accept" and "reject", respectively. Unlike the
System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#". Also, printer and
class names are not case-sensitive.
Finally, the CUPS versions may ask the user for an access password depending on the printing system configuration.
SEE ALSO
cancel(1), cupsenable(8), lp(1), lpadmin(8), lpstat(1),
CUPS Online Help (http://localhost:631/help)
COPYRIGHT
Copyright (C) 2007-2017 by Apple Inc.
10 June 2014 CUPS cupsaccept(8)