in reply to passing parms to other software program
#!/usr/bin/perl use strict; use warnings; my $param1 = 'whatever'; my $param2 = 'whoever'; my $programtorun = 'program_name'; my @parameters = ( $param1, $param2 ); my @cmdline = ( $programtorun, @parameters ); system (@cmdline); # will run cmd, and then return to script #exec (@cmdline); # will replace currently running script
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: passing parms to other software program
by brd (Acolyte) on Apr 21, 2006 at 00:31 UTC | |
by lima1 (Curate) on Apr 21, 2006 at 12:13 UTC | |
|
Re^2: passing parms to other software program
by yburge (Acolyte) on Apr 20, 2006 at 22:15 UTC |