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 speci

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 int

[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