Skip to content

Commit

Permalink
Merge pull request #80 from andersjanmyr/replace_tempfile_with_mktemp
Browse files Browse the repository at this point in the history
Use mktemp instead of tempfile to work on centos
  • Loading branch information
cosmin committed Jul 29, 2014
2 parents 64f42d0 + 8b6f329 commit 0c3360b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beeswithmachineguns/bees.py
Expand Up @@ -221,7 +221,7 @@ def _attack(params):
if h != '':
options += ' -H "%s"' % h.strip()

stdin, stdout, stderr = client.exec_command('tempfile -s .csv')
stdin, stdout, stderr = client.exec_command('mktemp -t XXXXX.csv')
params['csv_filename'] = stdout.read().strip()
if params['csv_filename']:
options += ' -e %(csv_filename)s' % params
Expand Down

0 comments on commit 0c3360b

Please sign in to comment.