Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: 1yura1
  • Content: Threads
  • Order by date
  1. 1yura1

    open3() usage, need assist

    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
  2. 1yura1

    Versions comparator

    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.
  3. 1yura1

    Open new Unix console session from perl script

    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.
  4. 1yura1

    Export scalars with 'on fly' generated names

    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...
  5. 1yura1

    eval & rmtree

    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...
  6. 1yura1

    Compute date/time string to the corresponding time(2) value in seconds

    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.
  7. 1yura1

    Child processes "reaping"

    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...
  8. 1yura1

    Set new environment variable for currient user sesion

    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.
  9. 1yura1

    use, require ?

    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...
  10. 1yura1

    $? ($CHILD_ERROR) variable value

    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...
  11. 1yura1

    eval "require $module"

    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...
  12. 1yura1

    Call a function

    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.
  13. 1yura1

    IP mask validation

    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.
  14. 1yura1

    List of functions, variables export by Perl module.

    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 =...
  15. 1yura1

    Creating a packege (pkg_create)

    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...
  16. 1yura1

    Working with date's (+/- operations with date)

    Hi all! I need to make next operation in perl: Currient_date - one_day For example: 01.05.2003 - 1 = 30.04.2003 How can I do this?
  17. 1yura1

    Work with C++ functions from Perl

    I need to call some function() written on C++. I have somecfile.c and somecfile.o.
  18. 1yura1

    How to remoove quotes ("" - symbols) from the begining ad the end

    How to remoove quotes (" - symbol) from the begining ad the end of the string
  19. 1yura1

    "Press any key to continue..."

    How can I make in perl script such procedure where script is waiting for pressing a key. "Press any key to continue..."
  20. 1yura1

    Cut string from the text file

    I have the string - "Some string". And I need to cut (delete, remoove) it from the text file.

Part and Inventory Search

Back
Top