[Tutor] Python for linux

Patrick Thunstrom pathunstrom at gmail.com
Tue Jan 27 18:04:01 CET 2015

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 the os module.

Checking for substrings: This is has many answers. Have you tried to
do this yet?


On Tue, Jan 27, 2015 at 11:50 AM, Reuben <reuben.dlink at gmail.com> wrote:
> 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 mentioned operations
> Any specific pointers to help me with this task?
> Thanks
> Regards,
> Reuben
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor

More information about the Tutor mailing list