Hello,
Does anybody can assist me with open3()?
It is require correct STDIN, STDOUT, STDERR, exit code, child process's manipulation, correct zombies cleanup, disable child(s) buzz
Thanks in advance for your time and help.
Best Regards
Hi all in the forum.
Does anybody know any versions comparator perl module?
For example, it is required to compare linux rpm packages versions.
Thanks,
Best Regards.
Hello,
I need to start/open new console session from my perl script, and allow user to run any commands (like as in usual Linux console).
Thanks,
Yura.
Hi All.
I have symple hash in module (ModuleName), for example:
my %exec;
$exec{'cat'} = '/bin/cat';
$exec{'grep'} = '/bin/grep';
$exec{'host'} = '/usr/bin/host';
I want module export scalars with 'on fly' generated (from this hash) names=hash keys, and scalars values=hash...
Hi all.
I'm using the following structure in my perl script:
eval { File::Path::rmtree($dir) };
if ($@) {
do_somth();
}
But sometimes, the script prints to STDOUT/STDERR following warnings/errors:
Can't remove directory /some/dir: Directory not empty at script.pl line XXX
It is required...
Hi All in forum,
I need to compute/convert date/time string like:
Tue Jul 6 06:24:29 EDT 2004
to the corresponding time(2) value in seconds since the system epoch, using standard Perl functions.
Best Regards,
Yura.
Hello,
I use 'system' to execute another programs.
When executed processe fork another child processe(s), and this processe stop or not respond, 'system' not receive any signals from it.
Then I need to write my own processes "reaper" for my second, third, ... level child processes.
Does...
Hi All.
I need to set new environment variable value (or change an old one), not for the running script fork, but for currient user sesion.
Thanks,
Yura.
Hi all.
I have the module Vars.pm, that parthes and exports some configuration variables:
#!/usr/bin/perl -w
package Module::Vars;
require 5.004;
require Exporter;
use strict;
use Exporter;
BEGIN
{
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
$VERSION = 0.1...
Hi all in forum.
In my perl script i try to examine $? variable value:
---
system("");
$exit_value = $? >> 8;
if( $exit_value == 0 ){
...
}
When I run the script from command line, $? returns correct value.
But smth. goes wrong when the script is executed by cron (daemon to execute...
Hi All in forum.
If I need to check does my script anable to load module "Some::Module", I can write:
---
$module = "Some::Module";
if( eval "require $module" ){
$module->import();
}
else{
...
}
---
instead of "use Some::Module".
Can I (using...
Hi all in Perl.
I want to make a call of the function, which name is stored for example in some $variable (I don't know name of the function, I have only variable).
Thanks.
Hi all in Perl forum.
Do anyone have reliable script for IP mask validation.
For example: I have IP=192.168.112.129, mask=255.255.255.0
Script to check is this mask valid?
Thanks.
Yura.
Hi All.
How can I get list of functions, which are export by Perl module used by script.
For example:
I have [Addon.pm] module.
It exports next list of functins:
---------------------------------
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK );
$VERSION = 0.1;
@ISA = ('Exporter');
@EXPORT =...
Hi all
I'm developer.
I have created new packege for FreeBSD using "pkg_create"
I tried to install it with "pkg_add" but installations failure...
The package seams to look good. It has need dirrectory tree and need files inside. During installation all pre-install...
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.