1 | #! /usr/bin/env python |
---|
2 | |
---|
3 | import subprocess, argparse |
---|
4 | |
---|
5 | Time = 'time ' |
---|
6 | CurlStart = 'curl -T ' |
---|
7 | InFile = 'FileWith24Bytes ' |
---|
8 | ServerAnduri = 'http://127.0.0.1:3456/uri/' |
---|
9 | Capability = 'URI:MDMF:icvavt7e5rocc4uwmbeidgokbi:rpflygqts7edwxgiqwjf2mtz4ubz2jqza3uqdy526g6xzw3awj5q:3:131073' |
---|
10 | |
---|
11 | StringToRun = Time + CurlStart + InFile + ServerAnduri + Capability |
---|
12 | CommandList = [CurlStart, InFile, ServerAnduri, Capability] |
---|
13 | |
---|
14 | |
---|
15 | |
---|
16 | def main(): |
---|
17 | SubProcess = subprocess.Popen(CommandList) |
---|
18 | #TestSubProcess = subprocess.Popen(["echo", "'foo'"]) |
---|
19 | |
---|
20 | if __name__ == '__main__': |
---|
21 | main() |
---|