[Tutor] [tutor] run a program and direct it's print file to a file?

Alan Gauld alan.gauld at btinternet.com
Sat Oct 25 17:47:16 CEST 2008


"Fast Primes" <fast_primes at hotmail.com> wrote in 

> I'm very rusty. From a linux box, I want to run a program X.py 
> after or while setting it's list output to a file L.txt. 
> How do I do that please?

$ python X.py > L.txt

Should do it.

HTH,


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld



More information about the Tutor mailing list