KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to establish an SSH connection and see if a directory exist, and if that directory exists I want to run commands on the local machine that made the SSH call. Here is what I've attempted: if [ ssh -t username@ssh_server -d /directory ] then { commands.... } fi Is something like this possible?
Tags (comma-separated)
Save Edits
Cancel