10-15-2008
Printing problem - Vertical Tab
At work, when I issue:
lpr -P$PRINTER -h filename
the file always prints a line then does a vertical tab off that first line instead of starting the new line at left.
It does this with every file I've tried, and I can't find any options that are set that would make things print this way.
I don't have sudo/su access so I'm hoping the fix can be done by normal users.
It's command-line Tru64 Unix, if that helps.
Thanks in advance.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a script that is being called from cron job .
This script further call 3 scripts which runs in the background .
main script ( called from cron )
{
script1 &
script2 &
script3 &
}
How to know when the main script is over ?? (3 Replies)
Discussion started by: rahul123_libra
3 Replies
2. Shell Programming and Scripting
I have a script for pinging the switches and giving me the report:-
#!/usr/local/bin/perl
#!/bin/ksh
#!/usr/bin
#etc
`source /export/home/chinnigd/.profile`;
@names = `cat switches|cut -f1 -d' '`;
@ip = `cat switches|cut -f2 -d' '`;
$num = @names;
$re ="Empty";
$i = 0;
$flag = 0;
while... (3 Replies)
Discussion started by: chinnigd
3 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I need to print in a specific mode : vertical spacing = 7
most printers can print only in vertical spacing = 6 or 8 mode.
Does anybody know how to print with a vertical spacing = 7 ?
What operation or what printer can do it ?
Thank you. (0 Replies)
Discussion started by: astjen
0 Replies
4. Shell Programming and Scripting
Dear friends,
I want to print variables' values in certain format where space between two values of variables is "a tab"
I tried where I provided "tab" between two varibales.
But when it print values on screen its giving me output without spaces in two values.
Request you to help me in... (7 Replies)
Discussion started by: anushree.a
7 Replies
5. UNIX for Dummies Questions & Answers
Hi i am using gnome terminal.
I used to open 2 or 3 tabs in the same terminal.
I used to set the title name for each tab as Win1 Win2 and Win3.
When i open a file with vim in any tab (say Win1) the naming convention of tab Win1 changes to filename whcih was opened .
Say i opened Test.sv in... (0 Replies)
Discussion started by: naaj_ila
0 Replies
6. Shell Programming and Scripting
Hi,
I have a cron tab file , which executes a particular script in a scheduled time and creates a output file. Since the cron tab file was created by the root , there is no access permission( for the output files) for other users irrespective of the default directory permission on which the... (5 Replies)
Discussion started by: BalajiUthira
5 Replies
7. Shell Programming and Scripting
Hi,
I have created a tab separated file from the following input file.
ADDRESS1 CITY STATE POSTAL COUNTRY LON LAT
32 PRINZREGENTENSTRASSE ROSENHEIM BAYERN 83022 DEU 1212182 4785699
263 VIA DANTE ALIGHIERI BARI PUGLIA 70122 ITA 1686233 4112154
30 VIA MILANO ... (1 Reply)
Discussion started by: ramky79
1 Replies
8. UNIX for Dummies Questions & Answers
Hi, I've got a bit of a ridiculous problem and wasn't sure where to post it.
I need to use the vertical bar for piping in Bash but, as per the title, am using a UK layout on a US (physical) keyboard which doesn't have a key for it in the place I'd expect. I've tried using xbindkeys and Unicode... (7 Replies)
Discussion started by: crunchgargoyle
7 Replies
9. Shell Programming and Scripting
Hi All,
How can we convert pipe delimited ( or comma ) file to vertical tab (VT) delimited.
Regards
PK (4 Replies)
Discussion started by: prasson_ibm
4 Replies
10. UNIX for Beginners Questions & Answers
The awk below executes and produces the current output. it skips the header in row 1 and prints $4,$5,$6 and then adds the header row back.
The problem is that it keeps the tailing tab and prints it in front of $1. I could add a pipe to remove the tab, but is there a better way to do it with on... (7 Replies)
Discussion started by: cmccabe
7 Replies
LP(1) BSD General Commands Manual LP(1)
NAME
lp -- front-end to the print spooler
SYNOPSIS
lp [-cs] [-o option] [-d printer] [-n num] [file ...]
DESCRIPTION
lp is a front-end to the print spooler as required by the IEEE Std 1003.2 (``POSIX.2'') specification. It effectively invokes lpr(1) with
the proper set of arguments. It generally prints the named files on the destination printer.
The following options are available:
-c Make the lp command exit only after further access to any of the input files is no longer required. The application can then safely
delete or modify the files without affecting the output operation.
-d dest
Specify a particular printer. If no -d is provided on the command line, the contents of the environment variables LPDEST or PRINTER
(with this precedence) are taken as the destination printer.
-n num Specify that num copies of each of the named files shall be printed.
-s Silent operation.
-o Printer specific options. Not supported, provided only as a compatibility option for SVR4.
ENVIRONMENT
As described above, the variables LPDEST and PRINTER are examined to select the destination printer.
SEE ALSO
lpr(1)
STANDARDS
The lp command is expected to comply with the IEEE Std 1003.2 (``POSIX.2'') specification.
AUTHORS
This implementation of the lp command has been written by Jorg Wunsch.
BUGS
The IEEE Std 1003.2 (``POSIX.2'') specification does not provide any means to print non-text files. It rather requires the files to be
printed to be text files limited to reasonable line lengths and printable characters.
BSD
January 22, 1995 BSD