Re: finding contents from string

2010-02-16 Thread Lars Behrens
danin wrote:

> can anyone please tell me about how to do this.

Now come on, you have to give a *bit* more information. What have you done 
so far? What did you plan? What are the rules for finding the string?

-- 
Cheerz Lars
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Strange python script behaviour

2009-08-04 Thread Lars Behrens
Ɓukasz wrote:

> The strangest thing is that if I change command in CRON
> 
> from
> python /home/xxx/script.py
> to
> python /home/xxx/script.py  > /tmp/script.log 2>&1
> 
> the script always works correctly!!!
> 
> The question is WHY? Any ideas?

Seems to me that this is more of a shell thing...

First of all, it is always a good idea to call applications with their full
path from cronjobs:

/usr/bin/python /home/xxx/script.py or whatever the output of your "which
python" may be.

How did you create the cronjob? Dependending on the editor you used, maybe
there is a missing newline...

-- 
Cheerz Lars
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: reading file to list

2009-01-21 Thread Lars Behrens
Lars Behrens wrote:

> As a non-native speaker and non-academic, I don't understand the "fittine
   "fitting", I meant. Sorry ^^  

-- 
Cheerz Lars
--
http://mail.python.org/mailman/listinfo/python-list


Re: reading file to list

2009-01-21 Thread Lars Behrens
Rhodri James wrote:

> I *was* thinking of code produced in the real world, and I don't buy
> your assertion.  I'm not an academic, and I wouldn't hesitate to lay
> down a line of code like that.  As I said before, it fits into English
> language idioms naturally, and as a result is pretty self-descriptive.

As a non-native speaker and non-academic, I don't understand the "fittine
into English language idioms naturally" which is mentioned here in the
different subthreads. Could you try to explain that for me?

TIA

-- 
Cheerz Lars
--
http://mail.python.org/mailman/listinfo/python-list


Re: Start Python at client side from web app

2009-01-21 Thread Lars Behrens
Thomas Guettler wrote:

> But I don't want to update the installation too often. Here is my idea:
> 
> We create a custom mime-type and register it on the client PC. The web
> application can send signed python code to the client PC. If the signature
> is correct, the code will be executed at the client. The signature
> prevents others from executing code.

My first thought was: Wouldn't it be much easier to start the script via
ssh?

-- 
Cheerz Lars
--
http://mail.python.org/mailman/listinfo/python-list