ssh execution help needed.
I m writing a program to execute remote script .
(display remote file content) Whenever i execute following statement it gives me an error. PHP Code:
PHP Code:
What is wrong with using variable in ssh. What could be the issue here? |
Are you doing this in php or bash ?
commands in bash are like Code:
command="cat /root/vm.cfg" Code:
command="cat /root/vm.cfg" |
Try keeing the command in the double quotes.
Code:
$command="cat /root/vm.cfg" |
still not able to get the proper output.
Error: Unable to open config file: /root/vm.cfg |
That's a strange error message, doesn't come from cat OR ssh ...
Where is that coming from? |
All times are GMT -5. The time now is 03:26 AM. |