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/tutor
>
Hi Jim,
Is this perhaps what you are looking for?
import os
os.system('ls -lt > output.txt')
Kind regards,
Nethirlon
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor