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