Ticket #1490: autoputter.py

File autoputter.py, 568 bytes (added by zancas, at 2011-08-25T23:45:57Z)

load some args into tahoe

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