On Thu, 2009-10-22, Al Fansome wrote:
>
>
> Jorgen Grahn wrote:
>> On Fri, 2009-10-16, Jeremy wrote:
>>> On Oct 15, 6:32 pm, MRAB wrote:
TerryP wrote:
> On Oct 15, 7:42 pm, Jeremy wrote:
>> I need to write a Python script that will call some command line
>> programs (using os.sys
Jorgen Grahn wrote:
On Fri, 2009-10-16, Jeremy wrote:
On Oct 15, 6:32 pm, MRAB wrote:
TerryP wrote:
On Oct 15, 7:42 pm, Jeremy wrote:
I need to write a Python script that will call some command line
programs (using os.system). I will have many such calls, but I want
to control when the c
On Fri, 2009-10-16, Jeremy wrote:
> On Oct 15, 6:32 pm, MRAB wrote:
>> TerryP wrote:
>> > On Oct 15, 7:42 pm, Jeremy wrote:
>> >> I need to write a Python script that will call some command line
>> >> programs (using os.system). I will have many such calls, but I want
>> >> to control when the c
On Thu, 2009-10-15, TerryP wrote:
...
> launching external programs, irregardless of language, generally falls
> into 3 major categories:
>
> 0.) blocks until program is done; like system
> 1.) replaces your program with process, never returns; like exec
> 2.) quickly return after asynchronou
And if you have this commands :alias ,ll ?
This commands not working , see "sh: ll: command not found"
and for "watch" and "top" need to use something to out from loops .
On Oct 15, 11:15 pm, TerryP wrote:
> On Oct 15, 7:42 pm, Jeremy wrote:
>
> > I need to write a Python script that will call
MRAB wrote:
> You could use multithreading: put the commands into a queue; start the
> same number of worker threads as there are processors; each worker
> thread repeatedly gets a command from the queue and then runs it using
> os.system(); if a worker thread finds that the queue is empty when it
> Again another great suggestion. I was not aware of the
> multiprocessing module, and I'm not (yet) sure if I understand why I
> should use instead of multithreading as explained by a previous post.
http://docs.python.org/library/multiprocessing.html
First paragraph...
--
Thanks,
--Minesh
--
On Oct 15, 6:47 pm, Ishwor Gurung wrote:
> Jeremy,
> Hi
>
> > I need to write a Python script that will call some command line
> > programs (using os.system). I will have many such calls, but I want
> > to control when the calls are made. I won't know in advance how long
> > each program will ru
On Oct 15, 6:32 pm, MRAB wrote:
> TerryP wrote:
> > On Oct 15, 7:42 pm, Jeremy wrote:
> >> I need to write a Python script that will call some command line
> >> programs (using os.system). I will have many such calls, but I want
> >> to control when the calls are made. I won't know in advance h
>> How can I use Python to schedule these commands?
> If I were as lucky as you, I would have used multiprocessing module[1]
> (my platform does not have sem_open() syscall). Others suggestions are
> as good as it can be but yeah you could get a lot of work done using
> multiprocessing module(all t
>> How can I use Python to schedule these commands?
> If I were as lucky as you, I would have used multiprocessing module[1]
> (my platform does not have sem_open() syscall). Others suggestions are
s/have/implement/g
--
Regards,
Ishwor Gurung
--
http://mail.python.org/mailman/listinfo/python-lis
Jeremy,
Hi
> I need to write a Python script that will call some command line
> programs (using os.system). I will have many such calls, but I want
> to control when the calls are made. I won't know in advance how long
> each program will run and I don't want to have 10 programs running
> when I
TerryP wrote:
On Oct 15, 7:42 pm, Jeremy wrote:
I need to write a Python script that will call some command line
programs (using os.system). I will have many such calls, but I want
to control when the calls are made. I won't know in advance how long
each program will run and I don't want to h
On Oct 15, 8:52 pm, Jeremy wrote:
> On Oct 15, 2:15 pm, TerryP wrote:
> > If you want simple sequenceal execution of external programs, use a
> > suitable blocking function to execute them (like system) combined with
> > a simple loop over the sequence of commands to run.
>
> This is the solution
On Oct 15, 2:15 pm, TerryP wrote:
> On Oct 15, 7:42 pm, Jeremy wrote:
>
> > I need to write a Python script that will call some command line
> > programs (using os.system). I will have many such calls, but I want
> > to control when the calls are made. I won't know in advance how long
> > each
On Oct 15, 7:42 pm, Jeremy wrote:
> I need to write a Python script that will call some command line
> programs (using os.system). I will have many such calls, but I want
> to control when the calls are made. I won't know in advance how long
> each program will run and I don't want to have 10 pr
I need to write a Python script that will call some command line
programs (using os.system). I will have many such calls, but I want
to control when the calls are made. I won't know in advance how long
each program will run and I don't want to have 10 programs running
when I only have one or two
17 matches
Mail list logo