in reply to run perl script with cmd line in shell
It appears that you are asking to have a perl command run the local script script.pl on server with the parameters $cmdlinArgtoscrpt. Is this correct?#!usr/binn/csh ssh user@server perl < script.pl $cmdlinArgtoscrpt
Update: "Hello. My name is MidLifeXis, and I am a complexaholic." See Re^2: run perl script with cmd line in shell for a better solution.
I see various solutions to this, with different difficulties:
Update: I do not mean to imply that these are the only solutions -- there may well be something much more elegant, robust, and maintainable than any idea proposed above.
--MidLifeXis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: run perl script with cmd line in shell
by Anonymous Monk on Apr 16, 2012 at 19:17 UTC | |
by Anonymous Monk on Apr 16, 2012 at 19:35 UTC | |
by icoder (Novice) on Apr 18, 2012 at 08:42 UTC | |
by Anonymous Monk on Apr 18, 2012 at 08:22 UTC | |
|
Re^2: run perl script with cmd line in shell
by Anonymous Monk on Apr 16, 2012 at 13:17 UTC | |
by MidLifeXis (Monsignor) on Apr 16, 2012 at 13:31 UTC |