Find the path of a shell command

Paulo da Silva p_d_a_s_i_l_v_a_ns at nonetnoaddress.pt
Wed Oct 12 16:45:54 EDT 2022


Às 20:16 de 12/10/22, 2QdxY4RzWzUUiLuE at potatochowder.com escreveu:
> On 2022-10-12 at 17:43:18 +0100,
> Paulo da Silva <p_d_a_s_i_l_v_a_ns at nonetnoaddress.pt> wrote:
> 
>> Às 17:22 de 12/10/22, Tilmann Hentze escreveu:
>>> Paulo da Silva <p_d_a_s_i_l_v_a_ns at nonetnoaddress.pt> schrieb:
>>>> I have python program that launches a detached rm. It works pretty well
>>>> until it is invoked by cron! I suspect that for cron we need to specify
>>>> the full path.
>>>
>>> Probably you could use os.unlink[1] with no problem.
>> No, because I need to launch several rm's that keep running after the script
>> ends.
> 
> rm doesn't take that long.  Why are you detaching them?

Because the use of "rm -rf" here is to remove full dirs, mostly in 
external drives, each reaching more than hundreds thousand files.





More information about the Python-list mailing list