Advertisement
MD500_Pilot

Untitled

Mar 18th, 2021
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. def get_remote_mount():
  2. test_file = "/test.test"
  3. remote_mount = (subprocess.check_output(
  4. ['ssh', nas_server, 'grep enclosure /root/nas_manager/nas_manager_config | awk {\'print $3\'}']).decode(('utf-8')))
  5. print ((remote_mount) + (test_file))
  6.  
  7. it returns this:
  8.  
  9. /mnt/enclosure0/front/column0/drive4
  10. /test.test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement