http://www.perlmonks.org?node_id=1074478


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

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?