Hi,
I am writing a script, which is invoked from other system using ssh.
I have problems reading the arguments passing to the script. If the argument has a space in it (ex "rev 2.00"), the script considers "rev" as 1 argument and "2.00" as another. Instead i want "rev 2.00" to be considered as a single argument.
It is very foolish to experiment with scripts using the root account. Execute as a regular user until the script is working properly, and even then only use root if really need root privileges.
$ ssh 192.168.0.101 "bin/try x 'y z' z"
chris@192.168.0.101's password:
received parameters :
script: try, value1: x, value2: y z value3: z