Sajjad,

You should enclose filenames in double quotes just in case they
contain spaces which would of course be interpreted as multiple
command line arguments. Sure, you could use single quotes, but they
are not that uncommon in filenames. On the other hand, I am yet to see
a filename with a double quote in it.

Using getpass is as simple as this:

import getpass
password=getpass.getpass("Enter password:")

Hope that helps.

On Aug 21, 7:43 pm, Syam Krishnan <[email protected]> wrote:
> Sajjad Anwar wrote:
>
> > My friends have been finding it difficult to mount iso's. they asked
> > whether it could be made more easy. guess this went fine.
>
> I don't mean to discourage you, but how is your script easier than doing:
> sudo mount -o loop <iso> <target>
>
> As Nikhil suggested, a GUI (for selecting the file and mount point)
> would've been nicer.
>
> Syam
--~--~---------~--~----~------------~-------~--~----~
"Freedom is the only law". 
"Freedom Unplugged"
http://www.ilug-tvm.org

You received this message because you are subscribed to the Google
Groups "ilug-tvm" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

For details visit the website: www.ilug-tvm.org or the google group page: 
http://groups.google.com/group/ilug-tvm?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to