I have a python script using paramiko to get some info from a couple of servers. My problem is that a couple of servers have a directory called Middleware (capital letter), and the rest of them are middleware.
Follow the command:
stdin, stdout, stderr = client.exec_command("ls -d /u01/app/oracle/Middleware/OPatch")
The problem of this command, is that it doesn't works when the server has middleware directory.
How can I run this command to access the both directory (Middleware or middleware) according to each server?
ps: I can't do this ls -d /u01/app/oracle/*/OPatch
because there are other folders in this directory.
Tks