Reputation: 17553
I want to run the following command
ssh [email protected] "cd /home/data/ ; chmod o+rx directory_$DATE"
$DATE is a bash variable. Is there a way to get it interpreted as a variable?
Upvotes: 1
Views: 509
Reputation: 2637
ssh [email protected] "cd /home/data/ ; chmod o+rx directory_\$DATE"
Upvotes: 4