doing a sequence of commands in a bash script.
Hi,
I'm creating a bash script that contains the following line: "ssh user@$server1 cd /tmp; pwd" What I want is to print /tmp of server1, but the script it isn't printing that. How can I do that in the script? Thanks, |
Change
Code:
"ssh user@$server1 cd /tmp; pwd" Code:
ssh user@$server1 "cd /tmp; pwd" |
thanks, it worked.
|
All times are GMT -5. The time now is 06:10 PM. |