Open Etaash-mathamsetty opened 2 years ago
notflix
creates temporary directory in /tmp
for WebTorrent. It can be deleted,
but it would be nice to make a cli switch that enables auto-deletion upon notflix
exits. Not all users have terabytes of RAM.
notflix
creates temporary directory in/tmp
for WebTorrent. It can be deleted, but it would be nice to make a cli switch that enables auto-deletion uponnotflix
exits. Not all users have terabytes of RAM.
thanks, I can write some cleanup code at the end of the shellscript now
ok so adding rm -dRf /tmp/webtorrent
at the end of the file is the fix :D
Well, better way would be to use trap to call this function on exit and place this call at the top of the script. I can write the MR
trap "rm -dRf /tmp/webtorrent" EXIT
Well, better way would be to use trap to call this function on exit and place this call at the top of the script. I can write the MR
trap "rm -dRf /tmp/webtorrent" EXIT
yeah that's better, since if i ctrl-c then the files won't be delted
Do you want under-downloaded files to hang in memory? Something more reliable can be used:
trap "rm -dRf /temp/webtorrent" SIGINT SIGTERM ERR EXIT
(from nyaa)
In any case, it may be worth reconsidering the decision to store temporary files
in /tmp/
. nyaa
downloads everything to the $HOME/Downloads/
directory.
Is it
/temp/webtorrent or /tmp/webtorrent
Is it
/temp/webtorrent or /tmp/webtorrent
99% sure it is /tmp
this was after running notflix, hogged 3-5 gb of ram after running and closing it. I am still clueless on how to free the ram.