this is my script...
However... I am not getting any input from server #4. This is my output.
abhmq01.abh-sort.us.dhl.com fail
abhxdb01d.abh-sort.us.dhl.com fail
admpae1-65.phx-dc.dhl.com fail
---> (I am missing input from server #4) this line was added by me to explain
/tmp/ /var/tmp/ /var/spool/mqueue /var/spool/sockets /usr/tmp/ /cdrom/ /SD_CDROM/ /mnt/ /tmp_mnt/ /dev/fd/ /proc/ /INFORMIXTMP/ /etc/mnttab core
However, the content of the file is written to the excludedata!
How would I pass awk output to a perl variable?
For example, I want to save the value in the 4th column into the variable called test. My best guess is something as follow, but I am sure this isn't correct.
$test = system("awk '/NUMBER/{print \$4}' $_"); (8 Replies)
hi all i am trying to save an awk value into an array in bash:
total=`awk '{sum+=$3} END {print sum}' "$count".txt"`
((count++))
the above statement is in a while loop..
$count is to keep track of file numbers (1.txt,2.txt,3.txt,etc.)
i get the following error:
./lines1:... (1 Reply)
Hello,
I have a shell script containing a command string in the following format:
command1 | command2 | cut -c9-16
The output from this is a record number (using characters 9-16 of the original output string) e.g. ORD-1234
I wish to save this value to a variable for use in later commands... (4 Replies)
Good morning everyone,
i am looking to know how to save the output of a command and reuse it again within a script
i already tired this one but it didn't work
TEMPDIR=/dir1/dir2
My_command> $TEMPDIR/$TEMPFILE
rm $TEMPDIR/$TEMPFILE*
it keeps saying "cannot write to a... (15 Replies)
Hi all........
Plss do help me.......in a big trouble... :wall::wall::wall:
I have 3 directories named as :1. /home/shuchi/source
2./home/shuchi/destination
3./home/shuchi/filter
now the problem is /home/shuchi/source has say 2 files with extension .txt as given below :
A.txt
Code:
... (0 Replies)
Hi all........
Plss do help me.......in a big trouble... :wall::wall::wall:
I have 3 directories named as :1. /home/shuchi/source
2./home/shuchi/destination
3./home/shuchi/filter
now the problem is /home/shuchi/source has say 2 files with extension .txt as given below :
A.txt
msisdn ... (5 Replies)
I have been trying this program for a long time. I am trying to read a file named "odon" line by line; read the first line, send it to do a command saved in a file "perm", once the first line has finished going through the content of the file perm, the result is saved with the number of the line.... (17 Replies)
Shell : bash
OS : Oracle Linux 6.4
I want to save the ouput of a nohup command to file other than nohup.out . Below are my 3 attempts.
For both Attempt1 and Attempt2 , the redirection logs the output correctly to the output file. But I get the error "ignoring input and redirecting stderr to... (7 Replies)
Hi,
i need help with a file creation of an output program. I've got a program that with #find creates an output for each files in a directory.
If i give this command :
-o spec$(date -u +%Y%m%dt%H%M)
it creates just one file, overwriting all the others since it is the creation date .... (2 Replies)
Hi,
I am working on a script where I am adding adding colors to few of the info in the output.
Now , after that is done , I see colour codes in log files which I don't want to see.:mad::mad::mad::mad:
So , I tried using sed command in script as below which gives me o/p (new.log) as blank file... (7 Replies)
Discussion started by: Dream4649
7 Replies
LEARN ABOUT DEBIAN
psf
PSF(8) Netatalk 2.2 PSF(8)NAME
psf - PostScript filter
SYNOPSIS
psf [-n name] [-h host] [-w width] [-l length] [-i indent] [-c]
DESCRIPTION
psf is an lpd filter for PostScript printing. psf interprets the name it was called with to determine what filters to invoke. First, if
the string ``pap'' appears anywhere in the name, psf invokes pap to talk to a printer via AppleTalk. Next, if the string ``rev'' appears,
psf invokes psorder to reverse the pages of the job. Finally, if psf was called with a filter's name as the leading string, it invokes that
filter. If there is no filter to run, psf examines the magic number of the input, and if the input is not PostScript, converts it to
PostScript.
KLUDGE
In the default configuration, psf supports two kludges. The first causes psf to check its name for the letter `m'. If this letter is found
and accounting is turned on, psf calls pap twice, once to get an initial page count and to print the job, and another time to get a final
page count. This is a work-around for bugs in a variety of PAP implementions that cause printers to never properly close the PAP output
file. A notable example is any printer by Hewlett-Packard.
The second kludge causes psf to examine its name for the letter `w'. If this letter is found and accounting is turned on, psf calls pap
with the -w flag. This flag causes pap to wait until the printer's status contains the string `idle'. Once this string is found, the job is
printed as normal. This kludge is a work-around for printers, notably Hewlett-Packard's LaserJet IV, which will report a page count while a
previous jobs is still printing.
EXAMPLE
The sample printcap entry below invokes psf to print text files, PostScript files, troff's C/A/T output, and TeX's DVI output, to an
AppleTalk connected LaserWriter Plus. Since the LaserWriter Plus stacks pages in descending order, we reverse the pages and print the burst
page last.
laser|lp|LaserWriter Plus on AppleTalk:
:sd=/var/spool/lpd/laser:
:lp=/var/spool/lpd/laser/null:
:lf=/var/log/lpd-errs:pw#80:hl:
:of=/usr/lib/netatalk/ofpap:
:if=/usr/lib/netatalk/ifpaprev:
:tf=/usr/lib/netatalk/tfpaprev:
:df=/usr/lib/netatalk/dfpaprev:
Note that if the host in question spools to more than one AppleTalk printer, /dev/null should not be used for the lp capability. Instead, a
null device should be created with mknod for each printer, as has been done above.
Finally, there is a file in the spool directory, /var/spool/lpd/laser, called .paprc, which pap reads for the AppleTalk name of the
printer.
SEE ALSO psorder(1), printcap(5), lpd(1), mknod(1), pap(1).
Netatalk 2.2 17 Dec 1991 PSF(8)