Created
December 21, 2015 03:17
-
-
Save mogi/5b1c98957ea08de9e176 to your computer and use it in GitHub Desktop.
test subprocess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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