Added the -h option to force the remote host
[xremote] / 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()