/usr/lib/python2.7/dist-packages/lbagent/testexec.py is in ltsp-cluster-lbagent 2.0.2-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/usr/bin/env python
def main():
print 'Start...'
import os
cmd="for X in redhat SuSE mandrake debian knoppix fedora mandriva ; do \n" + \
"if [ -f /etc/$X-release ]; then \n" + \
" cat /etc/$X-release ; \n" + \
" break ; \n" + \
" fi ; \n" + \
" done ; "
fd = os.popen("who")
consoleOutput = fd.readlines()
fd.close()
for i in range(len(consoleOutput)):
consoleOutput[i]=consoleOutput[i].replace('\n','')
print consoleOutput
if __name__ == "__main__":
main()
|