Skip to content

Instantly share code, notes, and snippets.

@mogi
Created December 21, 2015 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mogi/5b1c98957ea08de9e176 to your computer and use it in GitHub Desktop.
Save mogi/5b1c98957ea08de9e176 to your computer and use it in GitHub Desktop.
test subprocess
(lambda arg: subprocess.check_call(
' '.join([
#"ssh foo.jp", # TODO:delete
"hdfs dfs -test -e /path/to/dir/{0}"
]).format(arg),
shell=True
))(foo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment