Re: [Tutor] Python for linux

2015-01-27 Thread Alan Gauld
On 27/01/15 16:50, Reuben wrote: I wish to know which python module works well with Linux commands Most Python modules work on Linux if you are running your Python program on a Linux machine. e.g. Searching a string in file, number of occurrences of a string in a file, Thee isn't a

[Tutor] Python for linux

2015-01-27 Thread Reuben
Hello, I wish to know which python module works well with Linux commands - for e.g. Searching a string in file, number of occurrences of a string in a file, what is the permission of a file. To test this operation I need my python script to login into the Linux machine and then perform the above

Re: [Tutor] Python for linux

2015-01-27 Thread Patrick Thunstrom
You're actually asking multiple subquestions here, let me start by asking a clarifying question: When you say log in to the Linux machine I assume you mean you need to access a remote host? Your script will be running locally? Next your other questions: Checking permissions of a file: Look into

Re: [Tutor] Python 2.6.1 + Linux Ubuntu (Gutsy Gibbon)

2009-02-07 Thread Noufal Ibrahim
Eric Dorsey wrote: I am trying to teach myself Linux, and so I'm running Ubuntu (Gutsy Gibbon) as a virtual machine. I went to terminal, started up Python and realized it was version 2.5 so I thought I'd just upgrade to 2.6.1 After doing some Googling around, it seems that Ubuntu is highly

[Tutor] Python 2.6.1 + Linux Ubuntu (Gutsy Gibbon)

2009-02-05 Thread Eric Dorsey
I am trying to teach myself Linux, and so I'm running Ubuntu (Gutsy Gibbon) as a virtual machine. I went to terminal, started up Python and realized it was version 2.5 so I thought I'd just upgrade to 2.6.1 After doing some Googling around, it seems that Ubuntu is highly reliant on Python 2.5, so

Re: [Tutor] Python 2.6.1 + Linux Ubuntu (Gutsy Gibbon)

2009-02-05 Thread عماد نوفل
On Thu, Feb 5, 2009 at 8:24 PM, Eric Dorsey dors...@gmail.com wrote: I am trying to teach myself Linux, and so I'm running Ubuntu (Gutsy Gibbon) as a virtual machine. I went to terminal, started up Python and realized it was version 2.5 so I thought I'd just upgrade to 2.6.1 After doing some

[Tutor] Python urllib (linux)

2006-06-30 Thread Patty
Hi all, I'm doing some failure testing for a python script that uses urllib and urllib2 to open a web page and post data. If the server's apache is down or if I change the ip address the script is trying to contact to be a bogus address, the script handles it prefectly. When I unplug the ethernet

Re: [Tutor] Python urllib (linux)

2006-06-30 Thread Python
On Fri, 2006-06-30 at 13:58 +, Patty wrote: Hi all, I'm doing some failure testing for a python script that uses urllib and urllib2 to open a web page and post data. If the server's apache is down or if I change the ip address the script is trying to contact to be a bogus address, the

Re: [Tutor] Python urllib (linux)

2006-06-30 Thread Terry Carroll
On Fri, 30 Jun 2006, Patty wrote: I'm doing some failure testing for a python script that uses urllib and urllib2 to open a web page and post data Is there a way I can implement a timeout to handle this problem? I don't have any firsth-hand knowledge on this, but

Re: [Tutor] Python urllib (linux)

2006-06-30 Thread Patty
Hi again, problem? import socket if not socket.getdefaulttimeout(): socket.setdefaulttimeout(25.0) I'm sorry I forgot to mention that I'm using python 2.2.3, and this version doesn't have those methods. Patty ___ Tutor

[Tutor] Python on linux

2005-01-05 Thread David Holland
You can use idle while using linux, just type in idle from a command prompt ! ALL-NEW Yahoo! Messenger - all new features - even more fun! ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor