Nethirlon wrote:
On Thu, Jun 24, 2010 at 7:36 PM, Jim Byrnes<[email protected]> wrote:I am trying to run an example program that contains the line os.startfile('socket-nongui.py') which is Windows only. What would be the command to use on Linux? All files are in the same folder.Thanks, Jim _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutorHi Jim, Is this perhaps what you are looking for? import os os.system('ls -lt> output.txt') Kind regards, Nethirlon
I don't think so but it is my fault. When I asked the question I thought I gave enough info but I see now that I didn't.
The os.startfile('socket-nongui.py) line was in a gui program that demonstrates how to start and communicate with a non-gui program. It is Windows specific so I looked for but could not find a drop in replacement that works on Linux.
Thanks, Jim _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
