Hi Xelapond,
I can only guess at what happened in lieu of details. You pasted that command into the command line, right? It's my guess that you copied a command that wrapped onto two lines and you also copied a newline character that cause the first line to be executed before the command was completed. Paste the command into a text editor that doesn't wrap lines, delete the newline and copy the command again now that it's all on one line. Next time you paste it into the command line, it shouldn't execute until you hit the return key. The terminal will probably wrap the line but the terminal won't put in a newline so the line will be treated as a single line no matter how it's wrapped.
It's questionable whether the command will work anyway. Commands executed in a secure shell login probably execute in a different execution context from the GUI in which the Finder runs. You can read about execution contexts in
Technical Note TN2083: Daemons and Agents. It's difficult to determine from that TechNote whether your command will work but don't be too disappointed if it fails.
--
Gary
~~~~
If only you knew she loved you, you could face the
uncertainty of whether you love her.