Hi,
following situation I ran into -
my $values=(value1 "value two" value3 "value four)
How can I split to receive following result
value1
value two
value3
value four
to be able to compute them.
I had in my script
my @lines = split(/ /,$values);
foreach (@values){
....
}
but this...
Hi,
I have the need to compute a configuration file in order to perform certain tasks. The config file has different chapters.
This is - how i started - but I am kind of stock. I thought to read the config file and store all different chapters in separate array - so I can compute them after -...
Hi,
I generated a new Logfile Policy and loaded it using the opccfgupld command. I don't like to use the GUI.
With which command can I distribute LogfilePolicies to certain nodes?
Rgds - Dietmar
Hi,
I've run into following problem.
I need to process a list, and print every 5 errorcodes in one row and all errorcodes separated by a |. This is the list.
##############
#errorcode.lst
##############
errorcode=101
errorcode=222
errorcode=333
errorcode=444
errorcode=555
errorcode=666...
Hi,
I found a tool to help visualize/create perl regular expression. It is freeware for private non commercial use and is available to download for Linux and Windows OS.
http://weitz.de/regex-coach/
Dietmar
Hi again,
got another problem I didn't solve.
I need to extract the text wrapped by the ".
$line="msg PRINTF("syslogd: %s: No space left on device", logfile)";
Result should read:
$linenew="syslogd: %s: No space left on device"
How can I do it? Are there different ways?
Dietmar
Hi, I run into following problem. I got a config file i.e.
....
#FileName=fsmon.txt
#config file
managed_target=AIX
"*" P M 95 F 98
"/" P M 80 F 85 0
"/tmp" P M 90 F 95 0
"/var" P M 90 F 95 0
"/home" P M 90 F 95 0
"/usr" P M 95 F 98 0
managed_target=ORA
"/orabase*" P M 97 F 99 0
"/*/orabase" P...
Hi List,
just bought myself a 32 bit rs6000, setup aix 5.L and now like to configure sendmail (home user with dsl lan connection to the internet) to use my freemail account (username:password) to send and receive mail like I can do it with ?
How do I configure it?
Cheers, Dietmar...
Hi list, need to ask another question - thought I could manage it already myself.
I need to grep the number following the VALUE(=, of a line.
This is how the line looks like.
7: ATTR(PREFIX, "cpqCmcStatusTemp1"), VALUE(=,2);
Trojan helped me very much so far (see thread "Perl file parsing...
Hi list - how would I do following.
I've got a file with over 500 blocks like following. I need to parse the file consisting of blocks starting with CLASS end Ending with END. Inside those block is the information I need to extract. For all lines lines inside each block starting with 1: to 11...
Hi,
with DM Classic we programmed some basic monitors (Filesystem, Services, Processes) to read a file located on the endpoint, containing ie all services to be monitored. This gave us the ability to only create one monitor, what makes the rollout of basic monitoring very easy. The System-Admins...
Hi,
has anybody made any expirience with multiple Endpoints on a Microsoft Box. What do I have to look for? How do I set them up?
On Unix its no problem at all. Officially multiple Endpoints are only supported with Framework 4.1, but we're running 3.7.1.
Rgds
Dietmar
Hi,
how can I use perl to detect the status of NT Services.
e.g SERVICE_RUNNING, SERVICE_STOPPED.
Can someone please provide a sample script.
Rdgs
Dietmar
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.