09-25-2008
problem with printing from script
Hi
i have one issue and i dont understund what hapends may be you will help me!
I have one file with name
daemon_file it contains this records
aram_Load_pr-
aram_Pst-
aram_Chk-CTU
In the script i am doing like this
for daemon_row in `cat daemon_file`
do
daemon_name=`echo $daemon_row | awk '{split($1,tmp,"-");print(tmp[1])}'`
DAEMON_PARM=`echo $daemon_row | awk'{split($1,tmp,"-");print(tmp[2])}'`
done
The question is why i see in log file echo only from 2 records although in the file above i have 3 records
?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi ,
Can somebody Please help me in finding out where I am going wrong.
Suppose i have a file called r_wer which contains files.
for ex :
LMN20001
LMN20002
LMN20003
Now I want to print them.
The way I am doing is
$ for a in `cat '/r_wer'`
> do
> lp -d printername $a
> done
But... (3 Replies)
Discussion started by: rooh
3 Replies
2. UNIX for Dummies Questions & Answers
i can only print from unix when I am logged in as host. When any user logs in (even myself as a user who has root priviledges) I cannot print. Has anyone heard of this problem before and are there any troubleshooting tips out there. HELP......... (3 Replies)
Discussion started by: acarroll
3 Replies
3. IP Networking
I have a printer installed on sun solaris m/c sun os 5.8. It doesn't print more than 52 files i.e if a give lp *.txt and the curent folder contains more than 52 files then it doesn't print them but if print in batches , each containing 52 files then it prints them properly.
How do i increase the... (3 Replies)
Discussion started by: kapilv
3 Replies
4. UNIX for Dummies Questions & Answers
When I print a file from an application it never stops printing. Any ideas? (2 Replies)
Discussion started by: 744eagle
2 Replies
5. UNIX for Dummies Questions & Answers
Hello,
Not sure where to begin on describing the issue; please try to understand that I am not very familiar with SCO UNIXWARE. I am a newbie...
We have a SCO UNIXWARE version 7.4 when we restart the computer we are required to enter the command lpstart, without it; people cannot print.
... (1 Reply)
Discussion started by: Yorgy
1 Replies
6. UNIX for Advanced & Expert Users
I am trying to print to an hp printer. i configured it using the hp configuration, entry is in the /etc/hosts file, i can telnet into it using port 9100, ping it and send jobs to it. it just won't print. the jobs stay in the spooler. its telling me to add the printer to the canaccess list. ... (0 Replies)
Discussion started by: Rosario
0 Replies
7. HP-UX
I have scheduled to print a numerous of report in mid-night. But, I found that some reports have not been printed out.
Then, I checked the file /var/spool/lp/log and found that all reports have been submitted to print queue.
Could anyone tell me what can be done to ensure all print jobs can be... (2 Replies)
Discussion started by: alfredo
2 Replies
8. Shell Programming and Scripting
Hi,
I have a config.xml which cointains the tags like
<CONFIG>
<PROPERTY name="port" value="1111"/>
<PROPERTY name="dbname" value="ABCDE"/>
<PROPERTY name="connectstring" value="xyz/pwd"/>
</CONFIG>
This file is in some directory at UNix box.
I need to write a... (4 Replies)
Discussion started by: neeto
4 Replies
9. SCO
Does anybody know how I can stop the system slewing pages when a spool file has finished printing.
I need to set up a method where all users are printing to the same printer to produce labels.
The problem is that when the first users file has been printed the pages are slewed and the label is not... (2 Replies)
Discussion started by: rongrout
2 Replies
10. Shell Programming and Scripting
Hi, i am writing a script to generate a summary report for my data text file
my data in my text file goes like this:
MacOS:Mary Abraham:53.48:88:38
Windows in lala:Mary Abraham:22.30:23:22
lala in Windows:John Goodman:33.60:121:12
Hello world:Mr Tian:23.30:23:10
Windows in 31 days:John... (2 Replies)
Discussion started by: Cheranime
2 Replies
LEARN ABOUT DEBIAN
a5booklet
A5BOOKLET(1) General Commands Manual A5BOOKLET(1)
NAME
a5booklet - copy two A5 pages from a .dvi file to one A4 page in another.
SYNOPSIS
a5booklet file[.dvi]
DESCRIPTION
A5booklet is a little script that allows you to typeset two A5 pages next to eachother on a single A4 page (landscape), combining pages
from the original file in such a way that after double sided printing and some reshuffeling of the pages you get a nice a5 booklet that is
ready for a staple in the middle.
The script calls a very clever program dvidvi, written by Tomas Rokicki (the author of dvips), that does the real work.
The output is written to two files, file-1.dvi and file-2.dvi
dvips -ta4 -tlandscape file-1
then put the stack upside doen in the printer, and print the second file using
dvips -ta4 -tlandscape file-2
Make sure that the bottom of the A5-pages is on the correct side of the paper when you put the stack back for printing the back side.
After the two print jobs, you must re-shuffle the paper stack before you can staple it.
SEE ALSO
tex(1), dvips(1), dvidvi(1).
BUGS
The script has A4 papersize hardwired into it. Admittedly, a European-centered way of thinking.
Page number 1 is always the first page in the original .dvi file, not the page numbered 1 by TeX's numbering scheme.
AUTHOR
A5booklet is written by David A. van Leeuwen (david@ElseWare.cistron.nl), but is is not original in any way. The main two lines that do
the work are inspired from the man page of dvidvi. A5booklet is available under the conditions of the Gnu Public Licence.
OCTOBER 1997 A5BOOKLET(1)