jmckinzie has asked for the wisdom of the Perl Monks concerning the following question:
I basically want to run the one command with @ep,@ep2,@ep3#!/usr/bin/perl $pm="word.pm"; $srv=srv; $src="D:/Tivoli/bin/lcf_bundle.43100/bin/w32-ix86/inv/SCAN/"; $dst="C:/wansupp"; $file=binfile; $tmpfile="D:/Tivoli/custom/bin/binfile.txt"; $cmd="wspmvdata -s $srv -P sp:$src -t \@$line -P tp: $file"; ## this works but I want to shorten the list to a few test endpoints #@eplist=split(/\n/, `wlsendpts \@P1.pm | grep End | grep -v tcp3 | gr +ep reg`); @eplist=(1_reg1, 2_reg1, 3_reg1); open(DATA, "<$tmpfile") or die "Can't open data"; @eplist = <DATA>; close (DATA); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need script help
by toolic (Bishop) on Sep 22, 2016 at 18:07 UTC | |
|
Re: Need script help
by kcott (Archbishop) on Sep 22, 2016 at 21:08 UTC | |
by Anonymous Monk on Sep 22, 2016 at 22:07 UTC | |
by kcott (Archbishop) on Sep 23, 2016 at 06:47 UTC | |
by haukex (Archbishop) on Sep 23, 2016 at 07:10 UTC | |
by kcott (Archbishop) on Sep 24, 2016 at 18:25 UTC | |
by Discipulus (Canon) on Sep 23, 2016 at 07:30 UTC | |
by kcott (Archbishop) on Sep 24, 2016 at 18:26 UTC | |
by kcott (Archbishop) on Sep 24, 2016 at 18:22 UTC | |
by shmem (Chancellor) on Sep 24, 2016 at 19:29 UTC | |
by kcott (Archbishop) on Sep 25, 2016 at 09:14 UTC | |
|
Re: Need script help
by Anonymous Monk on Sep 22, 2016 at 20:08 UTC | |
by Anonymous Monk on Sep 22, 2016 at 20:34 UTC |