Thanks for the prompt, but, I've posted this same question to several HPUX specific fora (including on hp.com) and get the same answer. Have also spent a fair amount of time in white papers and man pages to no avail. HPUX doesn't do that trick with out something like GDB.
Thanks, anyway...
Apparently, this is not possible without employing a tool like the Gnu Debugger or similar or rewriting that functionality.
'hope this helps
If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
More of a Perl programmer than HP-UX Sys Admin.
There are a few posts related to this, but, none of the answer work for me, yet.
I am in the situation of determining security compliance for a number of machines. The rule set I must check includes checking the environment variables for...
Unfortunately, in a situation where I cannot post the full code. So, I have to stick to sanitized examples and philosophy.
Windows 32bit perl running on Windows 2008 R2 (64bit). Nearly everything works, except....
#!perl
use strict;
use Win32::Lanman;
use Data::Dumper;
my $arrayRef = []...
They would have if the files in question had previously been owned by that user:group.
'hope this helps
If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
...is my description.id:10 name:test3 longname:test 4 long name description:a discription of test 5');
my %hash;
while ($line =~ /id:(\d+)\s+name:(.*?)\s+longname:(.*?)\s+description:(.*?)(?=id:|$)/g ){
$hash{id} = $1;
$hash{name} = $2;
$hash{longname} = $3;
$hash{description} =...
rharsh, thanks for the reply. I had surfed the monastery, but, did not find that thread.
And, this seems relevant - http://docstore.mik.ua/orelly/perl2/prog/ch21_03.htm
'hope this helps
If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
I need to get the 'raw' context associated with a given selinuxsecuritycontext for a file or pid. You don't need to know what that means except that the only way I can find to get that info is via the system lib 'context_range_get'.
See "http://linux.die.net/man/3/context_range_get".
How do...
use IPC::Run;
Gives you the results, a timeout limit, any errors spit back through STERR, etc. Works very nicely.
'hope this helps
If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
First, I'm rather pedantic and tend to use explicit variables rather that playing with $_, except in very well defined and brief instances. And, drop some print statements in a few places to see what's working and what's not.
while ( my $line = <MEGADATA> ) {
print "LINE: $line";
next...
'Breaking a forum rule, here. I posted this in the Linux Server section, but, it is getting no attention. So, please pardon my lack of internet fora social grace as I re-post it, here.
I need to query the state(s) of the selinux booleans on a system. The 'getsebool' command appears to do...
I need to query the state(s) of the selinux booleans on a system. The 'getsebool' command appears to do the trick. However, on all the machines I have access to, I can't find an example of a 'pending' status, which appears to be a valid state. I have plenty of examples of 'active/inactive'...
They are getting a little dated, but, see the FAQs for this forum.... if you're still working on this.
'hope this helps
If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
Yep. That's it. Thanks a ton.
I also found that you can wrap the full output of rpm like:
$ rpm -q -xml httpd
'hope this helps
If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
man rpm says that I can use the --queryformat with the :xml arg to wrap the output of rpm in XML. I cannot find an example of the syntax.
Getting formats is pretty straight forward:
>rpm -qa -qf "%{NAME}\n"
But, how do I use the 'qf' functionality to tell it to wrap the output in XML, as it...
'ps -Eww $PID' does the trick.
When using 'ps' in a terminal, 'ps' truncates its output to the width of the terminal. The 'ww' tells 'ps' to use as much width as necessary to display the info.
'hope this helps
If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and...
Is there no section of Mac OS X on Tek-Tips? There is a server version. Does it not make the grade to be in this section of TTs? Looked. Didn't see one. Anyway, here goes.
On Mac OS X, for a given process ID, what is the best/most direct way to determine the environment variables (e.g...
It appears that in most cases, the 'protocol' can be inferred from the 'socket-type'. If the socket-type is stream, protocol will be tcp. If socket-type is dgram, protocol will be udp.
'hope this helps
If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the...
If firefox is asking you if you want to save the file, that likely means your web server is spitting out the text of the Perl code instead of executing the Perl code.
Do other CGI applications work on this server/machine?
My suspicion is that you don't have Apache configured correctly to run...
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.