[Tutor] os.startfile?

Nethirlon nethirlon at gmail.com
Thu Jun 24 19:59:09 CEST 2010


On Thu, Jun 24, 2010 at 7:36 PM, Jim Byrnes <jf_byrnes at comcast.net> 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  -  Tutor at python.org
> 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


More information about the Tutor mailing list