projects
/
xremote.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added the -r option to specify where to download result files.
[xremote.git]
/
example.py
1
#!/usr/bin/env python
2
3
# @XREMOTE_HOST: elk
4
# @XREMOTE_EXEC: python3
5
# @XREMOTE_GET: *.txt
6
# @XREMOTE_SEND: *.py
7
# @XREMOTE_PRE: ls -lt > files.txt
8
9
print('I am being executed!')
10
11
file = open('result.txt', 'w')
12
file.write('This is a text.\n')
13
file.close()