[Tutor] Pmw question

andy surany mongo57a@comcast.net
Wed Dec 18 17:34:01 2002


Sorry - bad choice of "words" on my part. I do understand tar... but I
appreciate the correction since others on the list may have also
misinterpreted.

Thanks.

-----Original Message-----
From: Magnus Lycka <magnus@thinkware.se>
To: andy surany <mongo57a@comcast.net>; Abel Daniel <abli@freemail.hu>;
tutor@python.org <tutor@python.org>
Date: Wednesday, December 18, 2002 5:18 PM
Subject: Re: [Tutor] Pmw question


>At 16:31 2002-12-18 -0500, andy surany wrote:
>>In the Linux world, should I simply execute the tar in
>>/usr/lib/python2.2/site-packages?
>
>No. A tar file can't be executed. It's not a program,
>it's an archive file. There are many things you might
>want to do with an archive file. You might want to
>update it with changed or additional content. You might
>want to list it. You might want to unpack it. If you
>unpack it you might want to use any of a number of different
>options. Most real unix programs DO NOT use a captive user
>interface where you click on checkboxes or select things
>from menues. That's very unproductive in the long run.
>Instead Unix chooses the slightly tougher start, and
>forces the user to get some idea of what he's doing before
>he starts. You give instructions to tar by command line
>flags. This is much faster to work with than any GUI once
>you know it, and it's at least a thousand times easier and
>more reliable to automate. Try to drive WinZip from a
>python script if you can!
>
>$ man tar
>
>I suggest that you read "Unix in a Nutshell" or some
>similar, good book. You can also have a look at
>http://www.thinkware.se/cgi-bin/thinki.cgi/UnixPhilosophy
>(One of the few Thinki pages I never had anything to
>do with... :)
>
>In Linux you should do something like:
>
>$ cd cd /usr/lib/python2.2/site-packages/
>$ tar xzvf Pmw.1.1.tar.gz
>
>In WinDOS you go to a slightly different directory and
>run the same tar command. If you have some brain dead
>GUI unarchiver instead, you might have to be very careful
>to make sure that the paths in the tar-file are used.
>You don't want to end up with all your files directly in
>your site-packages directory.
>
>But as I wrote, I suggest that you use the same, good tools
>in Windows. In NT/Win2k it works well (also in XP I guess.)
>DOS derivates like Win98 and Win ME are not so good though,
>but bash is certainly much better than command.com...
>
>See http://www.cygwin.com/
>
>
>--
>Magnus Lycka, Thinkware AB
>Alvans vag 99, SE-907 50 UMEA, SWEDEN
>phone: int+46 70 582 80 65, fax: int+46 70 612 80 65
>http://www.thinkware.se/  mailto:magnus@thinkware.se
>