Wendyz -
From your other thread - your Fujitsu printer responds to EPSON printer commands:
SI is ascii 15 - DC2 is ascii 18
SI turns on condensed mode printing.
DC2 turns off consdensed mode printing.
You will have to embed an SI character - not a literal "SI" but as an unreadable character as the first character in your document. The last character will have to be a DC2. Also unreadable.
Assuming you are not in some bizarre shell and you have a document to print.
Let's assume the document is in a file named docfile. And that you want to keep docfile on disk without weird characters in it.
You do not need a -o <option> You are forcing the options yourself.
\017 is the SI character, \022 is the DC2 character. You need quotes around them like this: "\017" The "name value" of the character is 017, but you need a backslash in front of it so unix sees it as an octal value, not a literal character.
I'm surprised your syadmin can't setup cups to drive the printer for you.
You then need to read the manual, get the control code sequences you want - finally embed them in your document. Many of the sequences are several weird characters all together, and many of them start with the escape character - so we call them "escape codes" or "escape sequences"
some give error message, like when I use lp -o cpi=12, it will show error message said that can't handle cpi=. And some options I use, the output didn't change anything but still can print out.
Thanks very much! Now it works. Any one question: how can I select pages which I want to print out. Like I have 10 pages and I just want to print 1st, 3rd page, how can I do. By the way, -o<option> doesn't work.
Hi,
I am using korn shell.
until ]
do
echo "\$# = " $#
echo "$1"
shift
done
To the above script, I passed 2 parameters and the program control doesn't enter inside "until" loop. If I change it to until ] then it does work.
Why numeric comparison is not working with -ne and works... (3 Replies)
Hi!
I have a somehow big file (almost 3000 lines long and thirteen columns). Some lines have no value at all or, at least, are incomplete. The columns' values that have no data are marked with a "-" and the corresponding line (the line that owns that value) should be discarded and not used.
... (5 Replies)
# uname -a
Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
# useradd 4141421248
useradd: invalid user name '4141421248'
why??? (6 Replies)
I have a script which uses below for loop:
for (( i = 0 ; i <= 5; i++ ))
do
echo "Welcome $i times"
done
But when I run the script, it gives error message:
Syntex Error : Bad for loop variable
Can anyone guide to run it?
Thanks in advance. (10 Replies)
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
it seams that my ctrl+c and my ctrl+d don't work. if I type a bunch of jiberish on a line and ctrl+c I expect the command to be cancelled and to be given a fresh prompt, but instead it just putts ^C at the end of the line.
Also, ctrl+d should close the session, but instead mine just puts ^D at... (3 Replies)
cat .servers | while read LINE; do
ssh jason@$LINE $1
done
exit 1
./command.ksh "ls -l ~jason"
Why does this ONLY iterate on the first server in the list? It's not doing the command on all the servers in the list, what am I missing?
Thanks!
JP (2 Replies)