1

Passing a script over SSH with arguments

view story
linux-howto

http://stackoverflow.com – I trying to pass a Perl script over SSH that takes arguments. I works fine like this: returnValue=$(ssh myuser$server 'perl -s' < /path/to/my/script) However, if I add some arguments returnValue=$(ssh myuser$server 'perl -s' < '/path/to/my/script -some argument') I get an error "/path/to/my/script -some argument: no such file or directory". Does anyone know how to do this? Thanks! (HowTos)