[Tutor] Cmd Advice
Dave Hanson
dave at hansonforensics.co.uk
Sun Feb 5 14:26:18 CET 2012
Hi Everyone,
I wonder if anyone here can help me? I have Googled the pants off this one
and have found useful resources, I also asked in the #python IRC channel
(no one seemed to know in there) but can't seem to crack it:
I want to create a 'task list' type of program with no GUI - I found this:
http://stevelosh.com/projects/t/ which is exactly what I want. I ran it
from my Ubuntu machine with no trouble at all. I wish to extend the program
myself to suit my personal needs.
Here is the source: http://paste.pocoo.org/show/546100/
So far so good. I then realised that at work (XP) I have restricted access
to a command line and so wouldn't be able to use it, restricted in the
sense of I simply am not permitted to access it! Some googling revealed a
class called "cmd" which I read up on
http://docs.python.org/library/cmd.html and I also found a good
site explaining the basics of how to use it
http://www.doughellmann.com/PyMOTW/cmd/.
I'm thinking of making it an executable file that pops up with a terminal
that I can enter the commands as I would on my bash shell - if that makes
sense?
Now my questions are please:
- Am I going down the right route by using "Cmd" or is there a better
way.
- Is anyone willing to 'have a go' for me and post the code back so I
can start modifying the 'guts' of the program to what I need or even just
start me off/point me in the right direction - I'd be most grateful for any
level of assistance.
Best Regards,
Dave Hanson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120205/c1000192/attachment.html>
More information about the Tutor
mailing list