Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    PTools::Proc::NWay 0.09

    Download button

    No screenshots available
    Downloads: 308  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Chris Cobb | More programs
    Perl Artistic License / FREE
    September 5th, 2007, 18:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    PTools::Proc::NWay description

    PTools::Proc::NWay allows to run a list of tasks with concurrent processing.

    PTools::Proc::NWay allows to run a list of tasks with concurrent processing.

    SYNOPSIS

    Module Synopsis

    Create a small script to use this module. Then run the small script using the '-h' (--help) command line option for usage help. The 'nway' command is just such an implementation. Example:

    use PTools::Local; # PerlTools Local module
    use PTools::Proc::NWay; # include this class
    exit( run PTools::Proc::NWay ); # return status to OS

    Command Synopsis

    nway [< options >] { -K | -R } filename [ - command [ -arg [...]]]

    where < options > include
    -c < num > - concurrent sessions (*) default is 8, max is 40
    -L < str > - specify logfile prefix default is to use 'CMD_'
    -l < dir > - log dir for the output default is /tmp/nway.< PID >
    -m < secs > - max seconds for a task default is unlimited time
    -p [< num >] - preview of commands (+) default is to run commands
    -r - randomize the task list default is original order
    -h - display usage help text and ignore other options
    -F < char > - IFS char for data file default is a colon (':')
    -D [< num >] - enable debugging output default is no debug output

    where
    { -K | -R } - specifes whether to keep (-K) or remove (-R) the
    temporary output logfiles created for each task

    filename - specifies a file of tasks to perform concurrently
    use a value of "stdin" to read from STDIN file

    [ - command ] - is a command used to run each of the task lines

    [ -arg [...]] - is a list of opts/args passed to the < command >

    Note: (*) Default and maximum values for '-c < num >' may be calculated for each server based on the number of CPUs. These limits can vary depending on the class of the host machine. However, the actual maximum value used will be the lesser of the following:

    A) calculated maximum, B) tasks to run, or C) value for 'num'

    Note: (+) The '-p' (--preview) option can be used as '-p < num >' where 'num' is a number equal to 2 or more. When used in this manner, will cause a random (1 .. num) second delay in the preview to simulate tasks running with various ending times. See the Options and Arguments section, below, for notes on using the long form of these options. For example, the following two commands are equivalent.

    nway -K -l /tmp/xyzzy -L ECHO_ filename

    nway --logdir /tmp/xyzzy --LogPrefix ECHO_ --Keep filename

    Requirements:

    · Perl



    Product's homepage

      


    TAGS:

    concurrent processing | PTools processing | Perl module | concurrent | processing | PTools

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM