Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Hemo
  • Content: Threads
  • Order by date
  1. Hemo

    RHEL 6.6 unable to nslookup records in /etc/hosts

    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...
  2. Hemo

    assistance with a better way to do this

    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...
  3. Hemo

    Encoding font question

    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...
  4. Hemo

    awk FS of 2 or more spaces

    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...
  5. Hemo

    postscript and duplexing printers - when and where to insert commands?

    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...
  6. Hemo

    OS 5.0.7 mp5 print spooler 'hangs'

    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 =...
  7. Hemo

    BoundingBox or not?

    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...
  8. Hemo

    Geo::PostalAddress examples?

    Anyone out there ever use this module that would be willing to show a small example of it in use? I am struggling with it.
  9. Hemo

    error: invalid lvalue in assignment

    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...
  10. Hemo

    invalid conversion from ‘void (*)()’ to ‘void (*) ....

    gcc 4.1.2 on OpenSuSE 10.2 Error during make: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/kde3/include -I/usr/lib/qt3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement...
  11. Hemo

    error: extra ';' problem

    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...
  12. Hemo

    SuSE YOU reports wrong version installed

    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)...
  13. Hemo

    postscript way to reverse a data array?

    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...
  14. Hemo

    new to pcl language, any tips?

    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...
  15. Hemo

    offending command: E ?

    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...
  16. Hemo

    printing gets enlarged (400%?) Any Ideas?

    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...
  17. Hemo

    perl module inside perl script?

    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.
  18. Hemo

    Printing a 'grid overlay' on a text 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...
  19. Hemo

    How do I install Perl modules without 'make' ?

    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.}
  20. Hemo

    determine basename of script via program

    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...

Part and Inventory Search

Back
Top