10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Cannot present unpresented disks back again. On a test server tried this as a solution "multipath -r" and it worked. Too worried to try it in production before I know all the information.
Any info would be appreciated!
Also some links to the documentation on this specific issue could help a... (1 Reply)
Discussion started by: jsteppe
1 Replies
2. Shell Programming and Scripting
Hi,
I am currently writing a perl module that will be passed queries from other scripts and use DBI to execute them on an Oracle Database. The problem I have is when it comes to the return.
I am currently getting this from my code:
FIELDA FIELDB FIELDC ... (6 Replies)
Discussion started by: chris01010
6 Replies
3. Shell Programming and Scripting
I'm filling in a table of values for grades. I decided to go with reading into a hash from the files but I'm coming up with an error when printing a value that does not exist. I need to know if I can on-the-fly print a space (" ") or blank in place of the grade.
Here's what the output should... (2 Replies)
Discussion started by: D2K
2 Replies
4. Shell Programming and Scripting
Hello,
There's a third-party application's command that shows the application's status like "tail -f verybusy.log". When use the command, the output comes every 1-sec. but when it goes in a script below the output comes every 8-sec...What is the problem and how can I fix it?
open(CMD,... (2 Replies)
Discussion started by: Shawn, Lee
2 Replies
5. Shell Programming and Scripting
Hello!!!
I'm trying to pass the output from bash command to perl variable in a perl script, and I used the "system" command to execute the bash statment and pass the result to perl string variable, in this perl script I used a variable $file that store data for using it as a regular expression.... (2 Replies)
Discussion started by: evolabo
2 Replies
6. Shell Programming and Scripting
Hi everybody;
I try to code a script perl to list all services that are active "ON" with a chkconfig -- list
the problem is that code list all services which are active or not.
#!/usr/bin/perl
use strict;
use warnings;
open(FILE,"-|") || exec "chkconfig --list |grep ON";... (2 Replies)
Discussion started by: bassma
2 Replies
7. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
8. Shell Programming and Scripting
Let's say I want to write a program that run these 4 UNIX commands and redirect output to a file.
#!/usr/local/bin/perl
use strict;
`cd \$HOME > output.txt`;
`cut -f1 inputfile.txt >> output.txt`;
`hostname >> output.txt`;
`ifconfig >> output.txt`;
I want to print a "carriage return"... (5 Replies)
Discussion started by: teiji
5 Replies
9. Shell Programming and Scripting
in "cmd" command i want to copy the ouput of the command excuted to a particular file in a directory.
How to do this..??
Ex : $telnet->cmd(String => 'allip:acl=a1;',Prompt => '/</');
i want to copy o/p of the command "allip:acl=a1;" in a log file in a particular directory.
Plz suggest.. (1 Reply)
Discussion started by: sudhakaryadav
1 Replies
10. Shell Programming and Scripting
i am using perl in win2000advanced server...
---------------------------
perl -version:
---------------------------
This is perl, v5.6.1 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2001, Larry Wall
Binary build 638 provided by... (1 Reply)
Discussion started by: sekar sundaram
1 Replies
IPC::Run3::ProfReporter(3) User Contributed Perl Documentation IPC::Run3::ProfReporter(3)
NAME
IPC::Run3::ProfReporter - base class for handling profiling data
SYNOPSIS
DESCRIPTION
See IPC::Run3::ProfPP and for an example subclass.
This class just notes and accumulates times; subclasses use methods like "handle_app_call", "handle_run_exit" and "handle_app_exit" to emit
reports on it. The default methods for these handlers are noops.
If run from the command line, a reporter will be created and run on each logfile given as a command line parameter or on run3.out if none
are given.
This allows reports to be run like:
perl -MIPC::Run3::ProfPP -e1
perl -MIPC::Run3::ProfPP -e1 foo.out bar.out
Use "-" to read from STDIN (the log file format is meant to be moderately greppable):
grep "^cvs " run3.out perl -MIPC::Run3::ProfPP -e1 -
Use --app to show only application level statistics (ie don't emit a report section for each command run).
METHODS
"IPC::Run3::ProfReporter->new"
Returns a new profile reporting object.
"$reporter->handle_app_call( ... )"
"$reporter->handle_app_exit( ... )"
"$reporter->handle_run_exit( ... )"
These methods are called by the handled events (see below).
"$reporter->app_call(@cmd, $time)"
"$reporter->app_exit($time)"
"$reporter->run_exit(@times)"
$self->app_call( $time );
my $time = $self->get_app_call_time;
Sets the time (in floating point seconds) when the application, run3(), or system() was called or exited. If no time parameter is
passed, uses IPC::Run3's time routine.
Use get_...() to retrieve these values (and _accum values, too). This is a separate method to speed the execution time of the setters
just a bit.
"$reporter->get_run_count()"
"$reporter->get_app_call_time()"
"$reporter->get_app_exit_time()"
"$reporter->get_app_cmd()"
"$reporter->get_app_time()"
"$reporter->get_app_cumulative_time()"
"$reporter->get_run_call_time()"
"$reporter->get_run_exit_time()"
"$reporter->get_run_time()"
"$reporter->get_run_cumulative_time()"
"$reporter->get_sys_call_time()"
"$reporter->get_sys_exit_time()"
"$reporter->get_sys_time()"
"$reporter->get_sys_cumulative_time()"
"$reporter->get_run_cmd()"
LIMITATIONS
COPYRIGHT
Copyright 2003, R. Barrie Slaymaker, Jr., All Rights Reserved
LICENSE
You may use this module under the terms of the BSD, Artistic, or GPL licenses, any version.
AUTHOR
Barrie Slaymaker <barries@slaysys.com>
perl v5.18.2 2013-06-11 IPC::Run3::ProfReporter(3)