Attachment 'SingleCore.py'
Download 1 #!/usr/bin/python2.7
2
3 import socket, datetime, time, getpass
4
5 start = datetime.datetime.now()
6 hostname = socket.gethostname().split('.')[0]
7 username = getpass.getuser()
8 time.sleep(10)
9 end = datetime.datetime.now()
10
11 dfmt = "%Y-%m-%d %H:%M:%S"
12 print "Started: %s Finished: %s Host: %s User: %s" % (start.strftime(dfmt), end.strftime(dfmt), hostname, username)
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.- [get | view] (2013-01-10 13:02:45, 0.3 KB) [[attachment:SingleCore.py]]
- [get | view] (2013-01-10 13:02:45, 0.2 KB) [[attachment:SingleCore.qsub.sh]]
You are not allowed to attach a file to this page.