weird question perhaps.
local network workstations and printer devices are assigned static IP, and mapped to a hostname in the /etc/hosts file
/etc/resolv.conf has the 'hostresorder local nis bind' entry, along with 'nameserver 8.8.8.8'
A side note, the 'who' command had historically...
OK folks, this is taking some courage to post this, because it lays bare my inexperience with some aspects of Perl.
I am working on a self-contained bit of code. If an outside module is used, it really needs to be part of the basic Perl installation. (RHEL 5.9, perl-5.8.8-40) )
I've read some...
I have in the past re-encoded postscript fonts on the fly into ISO 8859-1 compatible sets with successful results. This let me create a poscript output file that was portable and could transfer to a pc for rendering or to a printer for printing, and display the correct fonts.
I am now tasked...
I have a file that has fields separated by two or more space characters. Some of the fields contain a single space.
I'm puzzled how I could get awk to recognize 2 or more spaces as the field separator.
awk -F " " doesn't do it for me.
Given this data:
record1 record2 this is record...
This would all be easier if I actually had a duplexing printer in front of me, but alas, I do not. I need to write some postscript code, transfer it to a sister location and send it to their printer, with the hopes I have the code for duplexing pages done correctly. If I had a printer in front...
Wondering if anyone has run across this type of situation before and had any suggestions. First, the system information:
SCO OpenServer 5.0.7 Ent. with MP 5 installed.
# uname -X
System = SCO_SV
Node = sys_v
Release = 3.2v5.0.7
KernelID = 2003-02-18
Machine = i80386
BusType = ISA
Serial =...
I have a program that will output postscript data. In a section of my program, I will draw some shapes and diagrams based on data that is read, and this data can vary in such a degree that the diagrams may extend far enough to over-write other data on the page. This other data may have already...
I get error: invalid lvalue in assignment errors when trying to compile code with gcc 4.0+, this code previously compiled fine with gcc 3.x
I'm not a c nor a c++ programmer so do not understand this enough to fix it.
Could someone offer solutions for the following snippets that spawn the...
Ok, first off I am no C++ programmer, though I know a little about C and have written some simple things in C.
The author of this code passed away in late 2003 or I would be consulting with him.
I have a C++ package that has compiled on previous linux releases (redhat 8, suse 8,9,etc) but now...
Here's one that has me stumped,
I had a box with SuSE 9.2 installed. I used YaST and upgraded to SuSE 9.3 with my CDs. I did not install fresh. Now, whenever I run YOU to update software, it reports the installed version of SuSE as 9.2!
/etc/SuSE-release contains this:
SuSE Linux 9.3 (i586)...
Is there a (simple) manner to reverse a data array in postscript?
ie:
data [1 2 3 4 5] def
(simple reverse)
yields data being 5,4,3,2,1.
I don't know postscript very well, I have been searching the blue,red, and green books for 'reverse'. I might even be searching for the incorrect term.
The...
I'm quite fresh at this pcl language.
I currently have a perl script that parses data and outputs to postscript before sending to a printer. I realize that if I could get that output into PCL code, the printing would be much faster and I could utilize less expensive printers.
Any tips for...
I have a very simple postscript file that I use to 'test' a print if it can print postscript. It simply prints 5mm graph paper.
When I send this file to a known postscript capable HP LaserJet 4M, I get the nothing unless I tur on printing of PS Errors, then I get a single page output with the...
I have created a perl printer interface script for unix that takes textual input from a proprietary program and then sends output in postcript format to a printer. Each print job results in a single page form.
I can take the resulting postscript and render pdf and every poscscript capable...
I am using a perl module (Config::Tiny) and for portability reasons am wondering if it is possible to include a perl module within the code of the perl program itself?
I've not done this before and wondering if it is possible and how to go about doing so.
The module itself is a single .pm file.
Thought I'd share this snippet of code I wrote to print out a text file with a grid overlay.
I frequently use this when I am required to 'process' text files and need to know which line or what columns some text appears.
Hope it is useful for someone else as well.
#!/usr/bin/perl -w...
System has no online access to CPAN, and has no developer kit installed so no 'make'.
Anyone have any tried and tested ideas on installing a Perl module in a case like this?
(SCO OpenServer 5.0.6) {no comments about the OS, please.}
I need to determine the name of the running script from within itself _without_ using a module.
I've settled on using this:
$SELF = `basename $0`;
Just checking to see if there is anything more 'elegant', anything within Perl itself that doesn't requite me running a system command sort of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.