i've made a little mysql database to count how many time we print/day from a solaris server.
To get to this info i use the command:
after a few dates i've noticed that the amount of printout was everytime 500?!
now the lpstat command keeps only the last 500 entries, is there a way to extend the output or something like that???
thx
beta17
---------- Post updated 12-09-12 at 01:54 AM ---------- Previous update was 11-09-12 at 04:30 AM ----------
found this log file with the information i need:
"/opt/sfw/cups/var/log/cups/page_log"
Hello Is there a way to calculate how many times a particular symbol appeared in a string before a particular word.
Desktop/Myfiles/pet/dog/puppy
So, I want to count number of occurence of"/" in this directory before the word dog lets say.
Cheers,
Bob (3 Replies)
I have the awk
awk -F\* '$1=="ST",$1=="SE"{if($1=="ST"){close(f);f="sample" ++i} ; $1=$1; print>f}' OFS=\| <filename>
How to add the time stamp to the file name mentioned as "sample"
Please view this code tag video for how to use code tags when posting code and data. (6 Replies)
Hi people
I have a bash script with a line like this:
python example.py >> log &
But i can't see anything in the log file while python program is running only if the program ends seems to write the log file.
"$ cat log" for example don't show anything until the program ends.
Is there... (4 Replies)
Hello All,
As I stated in subject, I need a command to terminate my tcpdump command in a certain time period. (using HP-UX)
I am using below one to terminate when number of captured packages reach 3 limit.
But what if there will no packet come in 5 min for instance?
Please help me to find a... (2 Replies)
Hi All,
I have the requirement that ,i have to write a shell script that job has to wait for a 7 touch files created by another application for 4 hours, if i get all 7 touch files ,i have to send a mail that i jobs are completed, if if it is waiting for more than 4 hours i have to send a mail... (2 Replies)
My variable is something like:
f="/Volumes/VERVE/MOOTON_CALL/01_shots/XX/xx0195/Projects/program/rs0195_v400001.aep"
I use ${f:63:6} to call "rs0195" as characters counted from the left, but it'd be so much easier to count from the right.
If ${f:95:10} counts from the left, what would... (2 Replies)
Hi,
let's say an input looks like:
A|C|C|D
A|C|I|E
A|B|I|C
A|T|I|B
as the title of the thread explains, I am trying to get something like:
1|A=4
2|C=2|B=1|T=1
3|I=3|C=1
4|D=1|E=1|C=1|B=1
i.e. a count of every character in each field (first column of output) independently, sorted... (4 Replies)
we want the count of number of records to be printed on each row.
For Ex:
if there are 5 records on one unique id , the count "5'' should be printed on each record in other column. Please help for this. I am using unix & Cygwin.
Below are sample records:
KCZ0650473... (2 Replies)
Chaps, I need to count number of files in a remote directory from Linux (FreeBSD) as if 10 trace files (log files) been generated within 5min of time. So this is the script then I can setup a monitoring.
I came across with ls -1 \ip\d:\Logs | wc -l but then what else requires to check time... (8 Replies)
Discussion started by: samwijekoon
8 Replies
LEARN ABOUT REDHAT
cups-config
cups-config(3) Easy Software Products cups-config(3)NAME
cups-config - get cups api, compiler, directory, and link information.
SYNOPSIS
cups-config --api-version
cups-config --cflags
cups-config --datadir
cups-config --help
cups-config --ldflags
cups-config [ --image ] [ --static ] --libs
cups-config --serverbin
cups-config --serverroot
cups-config --version
DESCRIPTION
cups-config is the CUPS program configuration utility. It should be used by application developers to determine the necessary command-line
options for the compiler and linker, as well as determining installation directories for filters, configuration files, and drivers.
The --api-version command displays the current API version (major.minor).
The --cflags command displays the necessary compiler options.
The --datadir command displays the default CUPS data directory.
The --help command displays the program usage message.
The --ldflags command displays the necessary linker options.
The --libs command displays the necessary librarys to link to. The --image option adds the CUPS imaging library to the list. The --static
option shows the static libraries instead of the default (shared) libraries.
The --serverbin command displays the default CUPS binary directory, where filters and backends are stored.
The --serverroot command displays the default CUPS configuration file directory.
The --version command displays the full version number of the CUPS installation (major.minor.patch).
SEE ALSO
CUPS Software Programmers Manual, http://localhost:631/documentation.html
COPYRIGHT
Copyright 1993-2002 by Easy Software Products, All Rights Reserved.
25 October 2001 Common UNIX Printing System cups-config(3)