You need to set a timer and after it expires delete the folder with files from the desktop and the recycle bin. Apple MacBook not noticeable. Tell me how to implement this solution. Thank!
1 answer
If you need to delete on the tiper, then it is better to run the script in the background via the console. Example:
sleep 100 rm -rf ~/Desktop/folder_name rm -rf ~/.Trash/folder_name rm -f my_script.sh Throw this code into the file my_script.sh and run
bash my_script.sh & sleep 100- 100 secondsrm -rf ~/Desktop/folder_name- will remove thefolder_namefolder from the desktoprm -rf ~/.Trash/folder_name-folder_namefolder from the trashrm -f my_script.sh- will delete the script filemy_script.sh(will delete itself).
|
cron? - don Rumataне заметно- Vitaliy Kalyuzhnyak