Watch yourself on this one, slocate can often return some unexpected results
for file searches, and the last thing you want to do is delete something
important while trying to remove the latest game you installed.
Also, if you're installing from source you can often run "make uninstall" to
rem
> The basic idea I was toying around with is to create a delete/uninstall
> program that would take the output of slocate and iterate through that
> deleting all of the files associated with the program I wanted to
> uninstall without having to do so manually. Using tar balled source code
> does no
Danny Yoo wrote:
>
> On Sat, 13 Aug 2005, Vinay Reddy wrote:
>
>
>>>Anyway, how do I call bash to run a program - e.g. slocate - from
>>>within a python program. I believe that I have to import the OS first
>>>(or do I?) and I was thinking something like:
>>>
>>>...
>>>sh slocate file_name > pyt
> Also, if you have a recent version of Python (Python 2.4), the
> 'subprocess' module might be worth a look:
>
>http://www.python.org/doc/lib/module-subprocess.html
>
Is it just me or does anyone else think the new subprocess module
is making something fairly easy into something fairly comp
On Sat, 13 Aug 2005, Vinay Reddy wrote:
> > Anyway, how do I call bash to run a program - e.g. slocate - from
> > within a python program. I believe that I have to import the OS first
> > (or do I?) and I was thinking something like:
> >
> > ...
> > sh slocate file_name > python_defined_list
>
>
> I'm sure that somewhere in the dim and distant past this was asked, but
> I'll be b***ered if I can find reference to it, and google searches
> haven't been too illuminating yet. Anyway, how do I call bash to run a
> program - e.g. slocate - from within a python program. I believe that I
> have t
Hi Pythoneers
I'm sure that somewhere in the dim and distant past this was asked, but
I'll be b***ered if I can find reference to it, and google searches
haven't been too illuminating yet. Anyway, how do I call bash to run a
program - e.g. slocate - from within a python program. I believe that