1
The problem is I can’t separate the arquivo_novo
of /root/arquivo_novo
, as indicated below. I only need the "new file" to be able to enter the LOOP IF and the system returns /root/arquivo_novo
and never enters the LOOP IF. I can’t consider the /root/
because I don’t know where the file will be.
>>> subprocess.call(["find / -iname arquivo*],shell=True)
>>> /root/**arquivo_novo**
>>> 0
>>>
>>> subprocess.check_output(["find / -iname arquivo*"],shell=True)
>>> b'/root/**arquivo_novo**\n'
Is there any book or material that guides the creation of scripts in linux?
– Fabio
Linux the Bible and fluent Python are great books.
– Franklin Timóteo