[Tutor] Shared FIFO?

2009-05-17 Thread Allen Fowler
Hello, I have several CGI scripts that I would like coordinate via a "First In / First Out" style buffer.That is, some processes are adding work units, and some take the oldest and start work on them. What is the right way to do this?I suppose I could use an SQL server or SQlite , but

Re: [Tutor] Allow only one instance of a process

2009-05-17 Thread Kent Johnson
On Sat, May 16, 2009 at 10:26 PM, Sylvain Ste-Marie wrote: > I'm currently writing a script to batch convert video for my psp > > It basically looks into a folder for video and launch ffmpeg: > > ffmpeg -i "videoname" -f psp -r 29.97 -b 768k -ar 24000 -ab 64k -s 368x208 > "videoname.mp4" > > my id

Re: [Tutor] Find files without __doc__ strings

2009-05-17 Thread Kent Johnson
On Sat, May 16, 2009 at 9:46 PM, David wrote: > I am doing an exercise in Wesley Chun's book. Find files in the standard >  library modules that have doc strings. Then find the ones that don't, "the > shame list". I came up with this to find the ones with; > #!/usr/bin/python > import os > import

Re: [Tutor] Python popen command using cat > textfile .... how to terminate

2009-05-17 Thread Walker Hale IV
On Fri, May 15, 2009 at 12:46 PM, Noufal Ibrahim wrote: > MK wrote: >> >> Hi there, >> >> i am using this code to send an "cat > ThisIsMyUrl" with popen. >> Of cos cat now waits for the CTRL+D command. How can i send this command ? > > Wouldn't it be better if you directly opened the "ThisIsMyUrl"

Re: [Tutor] Find files without __doc__ strings

2009-05-17 Thread David
spir wrote: Le Sat, 16 May 2009 21:46:02 -0400, David s'exprima ainsi: I am doing an exercise in Wesley Chun's book. Find files in the standard library modules that have doc strings. Then find the ones that don't, "the shame list". I came up with this to find the ones with; #!/usr/bin/pyth