Re: [Tutor] example of spawn

2007-06-06 Thread Rikard Bosnjakovic
On 6/6/07, Martin Walsh <[EMAIL PROTECTED]> wrote: > I can't think of a windows parallel to /dev/null. "nul". Try "dir > nul" in a command shell. -- - Rikard - http://bos.hack.org/cv/ ___ Tutor maillist - Tutor@python.org http://mail.python.org/ma

Re: [Tutor] example of spawn

2007-06-06 Thread Tim Golden
Martin Walsh wrote: > '/dev/null' is a special file in a *nix environment that discards any > data written to it: http://en.wikipedia.org/wiki//dev/null > I can't think of a windows parallel to /dev/null. Merely for completeness, the windows (sort of) equivalent is the little-known NUL special fil

Re: [Tutor] example of spawn

2007-06-05 Thread Martin Walsh
Jason Coggins wrote: > In the example listed below, reproduced from the web page you recommended, > what does `cp`, `cp` and `/dev/null` do? I am assuming `index.html` is the > name of the program that will be launched. > > example:-- > os.spawnlp(os.

Re: [Tutor] example of spawn

2007-06-05 Thread Jason Coggins
p', 'index.html', '/dev/null') Jason - Original Message - From: "Alan Gauld" <[EMAIL PROTECTED]> To: Sent: Tuesday, June 05, 2007 5:32 PM Subject: Re: [Tutor] example of spawn > "Ja

Re: [Tutor] example of spawn

2007-06-05 Thread Alan Gauld
"Jason Coggins" <[EMAIL PROTECTED]> wrote > Would someone please provide me a short, simple > example of the spawn statement. > I am having trouble figuring the syntax out. There are two examples in the os module documentation. http://docs.python.org/lib/os-process.html What part do you not