9 More Discussions You Might Find Interesting
1. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
2. 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
3. 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
4. Solaris
The system don't boot.
on the screen appears following:
press enter to maintenance (or type CTRL-D to continue)...I checked with format command.
... the slices "0-root","1-swap","2-backup" exist.
...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies
5. Shell Programming and Scripting
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
Discussion started by: timmywong
8 Replies
6. 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
7. Shell Programming and Scripting
hi All,
cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'
Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies
8. Solaris
Hello everyone.
I beg your guys pardon please.
I try to ls -al in many path/directories. So, I put the code in text file which look like below;
ls -al /
ls -al /etc
ls -al /etc/default
...
however, when I paste it to Solaris over SecureCRT, it seems the code was escaped from "-" to... (0 Replies)
Discussion started by: Smith
0 Replies
9. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
PAPD.CONF(5) Netatalk 2.2 PAPD.CONF(5)
NAME
papd.conf - Configuration file used by papd(8) to determine the configuration of printers used by the Netatalk printing daemon
DESCRIPTION
/etc/netatalk/papd.conf is the configuration file used by papd to configure the printing services offered by netatalk. Please note that
papd must be enabled in /etc/netatalk/netatalk.conf for this to take any effect. papd shares the same defaults as lpd on many systems, but
not Solaris.
Any line not prefixed with # is interpreted. The configuration lines are composed like:
printername:[options]
On systems running a System V printing system the simplest case is to have either no papd.conf, or to have one that has no active lines. In
this case, atalkd should auto-discover the local printers on the machine. Please note that you can split lines by using \fR.
printername may be just a name (Printer 1), or it may be a full name in nbp_name format (Printer 1:LaserWriter@My Zone).
Systems using a BSD printing system should make use of a pipe to the printing command in question within the pr option (eg.
pr=|/usr/bin/lpr).
When CUPS support is compiled in, then cupsautoadd as the first entry in papd.conf will automagically share all CUPS printers by papd
utilizing the PPDs assigned in CUPS (customizable -- see below). This can be overwritten for individal printers by subsequently adding
individual entries using the CUPS queue name as pr entry. Note: CUPS support is mutually exclusive with System V support described above.
The possible options are colon delimited (:), and lines must be terminated with colons. The possible options and flags are:
am=(uams list)
The am option allows specific UAMs to be specified for a particular printer. It has no effect if the au flag is not present or if papd
authentication was not built into netatalk. Note: possible values are uams_guest.so and
uams_clrtxt.so only. The first method requires a valid username, but no password. The second requires both a valid username and the
correct password.
au
If present, this flag enables authentication for the printer. Please note that papd authentication must be built into netatalk for this
to take effect.
co=(CUPS options)
The co option allows options to be passed through to CUPS (eg. co="protocol=TBCP" or co="raw").
cupsautoadd[:type][@zone]
If used as the first entry in papd.conf this will share all CUPS printers via papd. type/zone settings as well as other parameters
assigned to this special printer share will apply to all CUPS printers. Unless the pd option is set, the CUPS PPDs will be used. To
overwrite these global settings for individual printers simply add them subsequently to papd.conf and assign different settings.
fo
If present, this flag enables a hack to translate line endings originating from pre Mac OS X LaserWriter drivers to let foomatic-rip
recognize foomatic PPD options set in the printer dialog. Attention: Use with caution since this might corrupt binary print jobs!
op=(operator)
This specifies the operator name, for lpd spooling.
pa=(appletalk address)
Allows specification of Appletalk addresses. Usually not needed.
pd=(path to ppd file)
Specifies a particular PPD (printer description file) to associate with the selected printer.
pr=(lpd/CUPS printer name or pipe command)
Sets the lpd or CUPS printer that this is spooled to.
EXAMPLES
Unless CUPS support has been compiled in (which is default from Netatalk 2.0 on) one simply defines the lpd queue in question by setting
the pr parameter to the queue name, in the following example "ps". If no pr parameter is set, the default printer will be used.
Example. papd.conf System V printing system examples
The first spooler is known by the AppleTalk name Mac Printer Spooler, and uses a PPD file located in /usr/share/lib/ppd. In addition, the
user mcs will be the owner of all jobs that are spooled. The second spooler is known as HP Printer and all options are the default.
Mac Printer Spooler:
:pr=ps:
:pd=/usr/share/lib/ppd/HPLJ_4M.PPD:
:op=mcs:
HP Printer:
:
An alternative to the technique outlined above is to direct papd's output via a pipe into another program. Using this mechanism almost all
printing systems can be driven.
Example. papd.conf examples using pipes
The first spooler is known as HP 8100. It pipes the print job to /usr/bin/lpr for printing. PSSP authenticated printing is enabled, as is
CAP-style authenticated printing. Both methods support guest and cleartext authentication as specified by the 'am' option. The PPD used is
/etc/atalk/ppds/hp8100.ppd.
HP 8100:
:pr=|/usr/bin/lpr -Plp:
:sp:
:ca=/tmp/print:
:am=uams_guest.so,uams_pam.so:
:pd=/etc/atalk/ppds/hp8100.ppd:
Starting with Netatalk 2.0 direct CUPS integration is available. In this case, defining only a queue name as pr parameter won't invoke the
SysV lpd daemon but uses CUPS instead. Unless a specific PPD has been assigned using the pd switch, the PPD configured in CUPS will be used
by papd, too.
There exists one special share named "cupsautoadd". If this is present as the first entry then all available CUPS queues will be served
automagically using the parameters assigned to this global share. But subsequent printer definitions can be used to override these global
settings for individual spoolers.
Example. papd.conf CUPS examples
The first entry sets up automatic sharing of all CUPS printers. All those shares appear in the zone "1st floor" and since no additional
settings have been made, they use the CUPS printer name as NBP name and use the PPD configured in CUPS. The second entry defines different
settings for one single CUPS printer. It's NBP name is differing from the printer's name and the registration happens in another zone.
cupsautoadd@1st floor:op=root:
Boss' LaserWriter@2nd floor:
:pr=laserwriter-chief:
SEE ALSO
papd(8), atalkd.conf(5), lpd(8), lpoptions(8)
Netatalk 2.2 06 Sep 2004 PAPD.CONF(5)