Home
last modified time | relevance | path

Searched refs:lpstat (Results 1 – 25 of 181) sorted by relevance

12345678

/dports/sysutils/munin-common/munin-2.0.67/plugins/node.d/
H A Dlpstat.in9 lpstat - Plugin to graph the queue size for the list of printers
58 my $lpstat = exists $ENV{lpstat} ? $ENV{lpstat} : '';
61 if (!$lpstat) {
66 until ($lpstat or @dirs == 0) {
69 $lpstat = $path if -x $path;
71 } elsif (! -x $lpstat) {
74 undef $lpstat;
78 if( ! -x $lpstat ) {
104 if( ! open(LPSTAT_A, "$lpstat $host -a|") ) {
127 if( ! open(LPSTAT_P, "$lpstat $host -p|") ) {
[all …]
/dports/sysutils/munin-master/munin-2.0.67/plugins/node.d/
H A Dlpstat.in9 lpstat - Plugin to graph the queue size for the list of printers
58 my $lpstat = exists $ENV{lpstat} ? $ENV{lpstat} : '';
61 if (!$lpstat) {
66 until ($lpstat or @dirs == 0) {
69 $lpstat = $path if -x $path;
71 } elsif (! -x $lpstat) {
74 undef $lpstat;
78 if( ! -x $lpstat ) {
104 if( ! open(LPSTAT_A, "$lpstat $host -a|") ) {
127 if( ! open(LPSTAT_P, "$lpstat $host -p|") ) {
[all …]
/dports/sysutils/munin-node/munin-2.0.67/plugins/node.d/
H A Dlpstat.in9 lpstat - Plugin to graph the queue size for the list of printers
58 my $lpstat = exists $ENV{lpstat} ? $ENV{lpstat} : '';
61 if (!$lpstat) {
66 until ($lpstat or @dirs == 0) {
69 $lpstat = $path if -x $path;
71 } elsif (! -x $lpstat) {
74 undef $lpstat;
78 if( ! -x $lpstat ) {
104 if( ! open(LPSTAT_A, "$lpstat $host -a|") ) {
127 if( ! open(LPSTAT_P, "$lpstat $host -p|") ) {
[all …]
/dports/shells/fish/fish-3.3.1/share/completions/
H A Dlpstat.fish1 __fish_complete_lpr lpstat
2 complete -c lpstat -s H -d 'Show the server hostname and port'
3 complete -c lpstat -s R -d 'Shows the ranking of print jobs'
4 complete -c lpstat -s W -d 'Specifies which jobs to show' -xa 'completed not-completed'
5 complete -c lpstat -s a -d 'Shows the accepting state of selected printer queues' -xa '(__fish_prin…
7 complete -c lpstat -s d -d 'Shows the current default destination'
8 complete -c lpstat -s l -d 'Shows a long listing of printers, classes, or jobs'
9 complete -c lpstat -s o -d 'Shows the jobs queue on the specified destinations' -xa '(__fish_print_…
11 complete -c lpstat -s r -d 'Shows whether the CUPS server is running'
12 complete -c lpstat -s s -d 'Shows a status summary, including the default destination'
[all …]
/dports/sysutils/webmin/webmin-1.981/lpadmin/
H A Dcups-lib.pl4 $lpstat = &has_command("lpstat.cups") ? "lpstat.cups" : "lpstat";
16 open(STAT, "$lpstat -v |");
30 $out = &backquote_command("$lpstat -l -p $esc", 1);
54 $avl = &backquote_command("$lpstat -a $prn{'name'} 2>&1", 1);
80 $con = &backquote_command("$lpstat -v $prn{'name'} 2>&1", 1);
110 if (&backquote_command("$lpstat -d 2>&1", 1) =~ /destination:\s+(\S+)/ &&
170 $stat = &backquote_command("$lpstat -c 2>&1", 1);
322 &has_command($lpstat) || return &text('cups_ecmd', "<tt>$lpstat</tt>");
/dports/print/cups/cups-2.3.3op2/systemv/
H A DMakefile14 lp lpadmin lpinfo lpmove lpoptions lpstat
17 lpstat.o
96 $(INSTALL_BIN) lpstat $(BINDIR)
129 $(RM) $(BINDIR)/lpstat
245 lpstat: lpstat.o ../cups/$(LIBCUPS) target
247 $(LD_CC) $(ALL_LDFLAGS) -o lpstat lpstat.o $(LINKCUPS)
/dports/x11-toolkits/fltk/fltk-1.3.8/src/
H A Dprint_panel.cxx517 FILE *lpstat; in print_load() local
537 while (fgets(line, sizeof(line), lpstat)) { in print_load()
550 pclose(lpstat); in print_load()
564 if (fgets(line, sizeof(line),lpstat)==0) { /* ignore */ } in print_load()
567 fclose(lpstat); in print_load()
588 FILE *lpstat; in print_update_status() local
597 if ((lpstat = popen(command, "r")) != NULL) { in print_update_status()
598 if (fgets(status, sizeof(status), lpstat) == 0) { // if no reply in print_update_status()
599 pclose(lpstat); in print_update_status()
601 if ((lpstat = popen(command, "r")) != NULL) { in print_update_status()
[all …]
/dports/x11-toolkits/fltk/fltk-1.3.8/fluid/
H A Dprint_panel.fl287 code {FILE *lpstat;
303 if ((lpstat = popen("LC_MESSAGES=C LANG=C lpstat -p -d", "r")) != NULL) {
304 while (fgets(line, sizeof(line), lpstat)) {
317 pclose(lpstat);
335 code {FILE *lpstat;
341 snprintf(command, sizeof(command), "lpstat -p '%s'", printer);
342 if ((lpstat = popen(command, "r")) != NULL) {
343 if (fgets(status, sizeof(status), lpstat)==0) { /* ignore */ }
344 pclose(lpstat);
H A Dprint_panel.cxx511 FILE *lpstat; in print_load() local
527 if ((lpstat = popen("LC_MESSAGES=C LANG=C lpstat -p -d", "r")) != NULL) { in print_load()
528 while (fgets(line, sizeof(line), lpstat)) { in print_load()
541 pclose(lpstat); in print_load()
558 FILE *lpstat; in print_update_status() local
565 if ((lpstat = popen(command, "r")) != NULL) { in print_update_status()
566 if (fgets(status, sizeof(status), lpstat)==0) { /* ignore */ } in print_update_status()
567 pclose(lpstat); in print_update_status()
/dports/math/giacxcas/fltk-1.3.0/fluid/
H A Dprint_panel.fl291 code {FILE *lpstat;
307 if ((lpstat = popen("LC_MESSAGES=C LANG=C lpstat -p -d", "r")) != NULL) {
308 while (fgets(line, sizeof(line), lpstat)) {
321 pclose(lpstat);
339 code {FILE *lpstat;
345 snprintf(command, sizeof(command), "lpstat -p '%s'", printer);
346 if ((lpstat = popen(command, "r")) != NULL) {
347 if (fgets(status, sizeof(status), lpstat)==0) { /* ignore */ }
348 pclose(lpstat);
H A Dprint_panel.cxx512 FILE *lpstat; in print_load() local
528 if ((lpstat = popen("LC_MESSAGES=C LANG=C lpstat -p -d", "r")) != NULL) { in print_load()
529 while (fgets(line, sizeof(line), lpstat)) { in print_load()
542 pclose(lpstat); in print_load()
559 FILE *lpstat; in print_update_status() local
566 if ((lpstat = popen(command, "r")) != NULL) { in print_update_status()
567 if (fgets(status, sizeof(status), lpstat)==0) { /* ignore */ } in print_update_status()
568 pclose(lpstat); in print_update_status()
/dports/x11-toolkits/ntk/ntk/fluid/
H A Dprint_panel.fl291 code {FILE *lpstat;
307 if ((lpstat = popen("LC_MESSAGES=C LANG=C lpstat -p -d", "r")) != NULL) {
308 while (fgets(line, sizeof(line), lpstat)) {
321 pclose(lpstat);
339 code {FILE *lpstat;
345 snprintf(command, sizeof(command), "lpstat -p '%s'", printer);
346 if ((lpstat = popen(command, "r")) != NULL) {
347 if (fgets(status, sizeof(status), lpstat)==0) { /* ignore */ }
348 pclose(lpstat);
H A Dprint_panel.cxx512 FILE *lpstat; in print_load() local
528 if ((lpstat = popen("LC_MESSAGES=C LANG=C lpstat -p -d", "r")) != NULL) { in print_load()
529 while (fgets(line, sizeof(line), lpstat)) { in print_load()
542 pclose(lpstat); in print_load()
559 FILE *lpstat; in print_update_status() local
566 if ((lpstat = popen(command, "r")) != NULL) { in print_update_status()
567 if (fgets(status, sizeof(status), lpstat)==0) { /* ignore */ } in print_update_status()
568 pclose(lpstat); in print_update_status()
/dports/shells/zsh/zsh-5.8.1/Completion/Unix/Type/
H A D_printers25 if (( $+commands[lpstat] )); then
34 ${${(f)"$(_call_program printers lpstat $tmp -a 2>/dev/null)"}%% *} &&
70 if (( $+commands[lpstat] )); then
71 # If lpstat it exists, it's possible there are some other
73 _call_program printers lpstat -a 2>/dev/null | while read entry; do
/dports/editors/mined/mined-2015.25/usrshare/bin/
H A Duprint69 lpstat=lpstat
75 $lpstat -a | sed -e "s,^\(.*\) accepting .*,\1," -e t -e d
82 then defprinter=`$lpstat -d | sed -e "s,.*: ,," -e t -e d | sed -e 1q`
/dports/print/cups/cups-2.3.3op2/test/
H A Dwaitjobs.sh37 jobs=`$runcups ../systemv/lpstat 2>/dev/null | wc -l | tr -d ' '`
50 jobs=`$runcups ../systemv/lpstat 2>/dev/null | wc -l | tr -d ' '`
H A D5.5-lp.sh82 $runcups $VALGRIND ../systemv/lpstat -W completed -o | tee $BASE/lpstat-completed.txt
/dports/math/giacxcas/fltk-1.3.0/src/
H A Dprint_panel.cxx519 FILE *lpstat; in print_load() local
537 if ((lpstat = popen("LC_MESSAGES=C LANG=C lpstat -p -d", "r")) != NULL) { in print_load()
538 while (fgets(line, sizeof(line), lpstat)) { in print_load()
551 pclose(lpstat); in print_load()
568 FILE *lpstat; in print_update_status() local
575 if ((lpstat = popen(command, "r")) != NULL) { in print_update_status()
576 if (fgets(status, sizeof(status), lpstat)==0) { /* ignore */ } in print_update_status()
577 pclose(lpstat); in print_update_status()
/dports/x11-toolkits/ntk/ntk/src/
H A Dprint_panel.cxx519 FILE *lpstat; in print_load() local
537 if ((lpstat = popen("LC_MESSAGES=C LANG=C lpstat -p -d", "r")) != NULL) { in print_load()
538 while (fgets(line, sizeof(line), lpstat)) { in print_load()
551 pclose(lpstat); in print_load()
568 FILE *lpstat; in print_update_status() local
575 if ((lpstat = popen(command, "r")) != NULL) { in print_update_status()
576 if (fgets(status, sizeof(status), lpstat)==0) { /* ignore */ } in print_update_status()
577 pclose(lpstat); in print_update_status()
/dports/print/openprinting/papi-1.0_beta/docs/man/
H A DMakefile.am9 man_MANS_in += lpstat.1.in lp.1.in cancel.1.in enable.1.in disable.1.in
16 man_MANS += lpstat.1 lp.1 cancel.1 enable.1 disable.1
/dports/sysutils/LPRng/lprng-3.8.C/man/
H A DMakefile.am3 lpd.perms.5 lpf.1 lpq.1 lpr.1 lprm.1 lpstat.1 pclbanner.1 \
7 lpd.perms.n lpf.n lpq.n lpr.n lprm.n lpstat.n monitor.n pclbanner.n \
/dports/print/openprinting/papi-1.0_beta/source/bsd-sysv-commands/
H A DMakefile.am10 bin_PROGRAMS = lpq lpr lprm lp lpstat cancel program
21 lpstat_SOURCES = lpstat.c common.c
/dports/math/latte-integrale/latte-version_1_7_6/code/latte/normalize/
H A DReductionTestWithCPLEX.cpp131 int lpstat = CPXgetstat(env, lp); in IsReducible() local
132 if (lpstat != CPX_STAT_OPTIMAL) { in IsReducible()
133 cerr << "LP solution status code: " << lpstat << endl; in IsReducible()
/dports/print/openprinting/papi-1.0_beta/
H A DChangeLog13 1312856 segfault in lpstat and others
37 * Added -u option to lpstat
54 * removed "_default" printer from lpstat output
159 * Added attribute dump support to lpstat and lp/lpr so that you can dump
162 lpstat -p ipp://localhost/printers/queue -l 2
/dports/shells/fish/fish-3.3.1/share/functions/
H A D__fish_print_lpr_printers.fish2 lpstat -p 2>/dev/null | sed 's/^\S*\s\(\S*\)\s\(.*\)$/\1\t\2/'

12345678