Dear All,
Can anybody explain me how to pass the variable value to command argument which will execute in remote machine.
example..
test="test-123.dbf"
how can i pass this value to command ls -l for remote machine?
I tried to do like this way
ssh root@remote 'ls -l /home/test/${test}'
It is not taking the variable value it is giving the output of ls -l of the folder mentioned which contains the other files too.
pl help me how can i achieve this.
thanks in advance..
Madhu