Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: Splitting up quoted/escaped command line arguments

by Tommy (Chaplain)
on Feb 11, 2014 at 19:08 UTC ( #1074476=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Splitting up quoted/escaped command line arguments
in thread Splitting up quoted/escaped command line arguments

I'll potentially be doing hundreds of these calls in parallel and I have to avoid the overhead of shelling out every time. I've already tested and the difference is very significant when opening to ssh vs opening to a shell opening to ssh. There's a huge slowdown on the local machine when I involve the shell.

Tommy
A mistake can be valuable or costly, depending on how faithfully you pursue correction


Comment on Re^4: Splitting up quoted/escaped command line arguments
Download Code
Re^5: Splitting up quoted/escaped command line arguments
by runrig (Abbot) on Feb 11, 2014 at 19:11 UTC
    Store the string in the database with some token that you can split on, that won't show up in the command itself. But, the "||" in your example is a shell operation, it won't work in 'exec @args'. Ignore that last part...I see it's part of the remote command passed to ssh.

    Update: Isn't the command just one arg then that's passed to ssh?

      In some cases there is more than one argument, and in some cases the binary command at the beginning is not ssh. =D

      Tommy
      A mistake can be valuable or costly, depending on how faithfully you pursue correction

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074476]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2014-12-29 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (193 votes), past polls