Hi Peter,
On Thu, Apr 10, 2014 at 2:30 PM, Peter Otten <__pete...@web.de> wrote:
> Dharmit Shah wrote:
>
>> I am trying to create a script that will go through the
>> /var/log/secure file on a Linux system and provide desktop
>> notifications for failed login at
Hi all,
I am trying to create a script that will go through the
/var/log/secure file on a Linux system and provide desktop
notifications for failed login attempts.
Here is the code - http://pastebin.com/MXP8Yd91
And here's notification.py - http://pastebin.com/BhsSTP6H
I am facing issue in the f
t:
>
>>>> s='abba'
>
> The first letter:
>
>>>> s[0]
> 'a'
>
> The last letter:
>
>>>> s[-1]
> 'a'
>
>
> If you now compare these, you will know if they are the same and hence
> you print him/her
r the loop idea. It didn't strike me at all.
@All : Thanks a bunch for helping me out.
:)
Cheers,
Dharmit
On Tue, Aug 28, 2012 at 7:18 PM, Dave Angel wrote:
> On 08/28/2012 07:23 AM, Dharmit Shah wrote:
>> Hello,
>>
>> I am trying to do the following :
>>
>
random". Can someone please point what I am missing. Thank you!
Cheers,
Dharmit
--
Dharmit Shah
www.about.me/dharmit
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
.replace('\', '/')
>^
> SyntaxError: EOL while scanning string literal
> Process terminated with an exit code of 1
>
> Thanks,
>
> Dick
>
>
> _______
now if it's okay to skip that
chapter and read further?
--
Regards
Dharmit Shah <http://about.me/dharmit>
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
__name__=="__main__":
import doctest
doctest.testmod()
PS - My knowledge of Python is still very basic and I am trying to dive into
it as deeper as I can. Solutions on Stackoverflow.com were beyond my
understandability.
--
Regards
Dharmit Shah
somewhat comprehensive online resource
>> that explains from the beginning in English, plain English, as this is
>> the only language I speak. Something to get my foot in the door would
>> be awesome.
>>
>>
>> Cheers,
>> Doug Marvel
>> ___