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 Andrzejek 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
  • Order by date
  1. Hemo

    RHEL 6.6 unable to nslookup records in /etc/hosts

    thanks. that does verify things do not work. (!) This is a RHEL system with default setups, we do not configure DNS on these, as we are not knowledgeable in DNS configurations or maintenance. 'Someone' did 'something' and things no longer work as they do work on 10's of other system setup. It...
  2. Hemo

    RHEL 6.6 unable to nslookup records in /etc/hosts

    ok, enough, and I see your point and understand your answer is accurate regarding nslookup Let me example the behavior I am seeing when using the 'who' command: issue the 'who' command and I used to see the hostname in parenthesis: someuser pts/2 2015-10-02 20:13 (static_pc) but now, I...
  3. Hemo

    RHEL 6.6 unable to nslookup records in /etc/hosts

    I may have a simple understanding of this, but I understand the 'host' and 'nslookup' commands will call the resolver, and the resolver is configured to first look in the /etc/hosts file, and then use the public DNS the line 'hostresorder local nis bind' in the /etc/resolv.conf file is telling...
  4. 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...
  5. Hemo

    assistance with a better way to do this

    Thanks prex1. I had run across references to 'an array of hashes' but never found an example that really showed how to push the hash into the array. I also found interesting what you altered in the print_barcode sub. I tend to write code very much like a full language and I miss out on the...
  6. Hemo

    assistance with a better way to do this

    I can't see a way to delete my OP. After spending much time reading and trial and error, I came up with a hash of hashes to solve my situation. I am able to grow the number of barcodes dynamically and have a single loop to process all of them, whether there are 1 or 100. #!/usr/bin/perl use...
  7. 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...
  8. 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...
  9. Hemo

    awk FS of 2 or more spaces

    figures as soon as I post I figure it out. I had bee trying this as well: awk -F "[ ]+" but this is what ended up working: awk -F "[ ]+[ ]+"
  10. 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...
  11. 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...
  12. Hemo

    OS 5.0.7 mp5 print spooler 'hangs'

    I've tried netcat (ftp://ftp.aplawrence.com/pub/netcat/) and I get the same results, just coming back to post and I see I'm a bit late for the suggestion. So, both netcat and the SCO method act the same. I can ping, telnet to port 9100 and dump text to the printer(s). Files submitted by root...
  13. 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 =...
  14. Hemo

    Read data from CSV file in PERL

    When you are developing across platforms for a client that insists 'modules' are not allowed, and the perl program must be totally self contained... you find the reasoning for the way I explained the solution. Hardly a 'roll your own' as this method is described early on in most of the Perl...
  15. Hemo

    Read data from CSV file in PERL

    Simple parsing of CSV files can be done without the bulk of the CPAN module: #!/usr/bin/perl #use strict; # turn on compiler restrictions $|++; # do not buffer output my $file = ""; my @field = (); my $line = 1; my $count = 0; my...
  16. Hemo

    BoundingBox or not?

    I found what I needed to do to restrict printing to a 'window'. The below code works well for me, I'm not sure if there is better way to do this or not. This create an rectangular area on the page that acts like a 'window', any later commands will check to see if any portion prints outside the...
  17. Hemo

    Perl Editors for a Mac??

    I use linux, but this editor is also available for Mac OS X. I am using Komodo by ActiveState and think it works very well. They have a (free) stand-alone editor: http://www.activestate.com/Products/komodo_edit/ Or their full IDE (non-free): http://www.activestate.com/Products/komodo/
  18. Hemo

    Any Advice - Send PS file to Printer

    I have used: % serverdict begin 0 exitserver at the beginning of postscript I want to stay resident on the printer. This works until the printer is turned off. If power on the printer is cycled, then the code desired to be printer resident must be resent, including the above command again. I...
  19. 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...
  20. Hemo

    Decode Exe?

    Guess I'm showing my age. After doing many searches, I too can no longer find exe2perl. I know I had used it many years back. I had not been aware of 'par', hence my ignorance on that subject.

Part and Inventory Search

Back
Top