Temporary files listed by lsof don't exist
8
votes
4
answers
5357
views
I like copying flash videos for offline viewing later. I used to do this by loading the video in the browser (Firefox or Google Chrome), then running this command to see where the flash file was being cached:
lsof | grep ^Google | grep folders
This will show all the temporary files Google Chrome has open at the moment, for example:
...
Google 311 mike 21u REG 14,1 262148 17819373 /private/var/folders/zz/zzTLi2haPMrCYxEbpkwFmS+++TI/-Tmp-/.com.google.chrome.p22bCa
Google 311 mike 22u REG 14,1 9974 17819369 /private/var/folders/zz/zzTLi2haPMrCYxEbpkwFmS+++TI/-Tmp-/.com.google.chrome.MUo4JT
Google 312 mike txt REG 14,1 9974 17819369 /private/var/folders/zz/zzTLi2haPMrCYxEbpkwFmS+++TI/-Tmp-/.com.google.chrome.MUo4JT
Google 312 mike txt REG 14,1 262148 17819373 /private/var/folders/zz/zzTLi2haPMrCYxEbpkwFmS+++TI/-Tmp-/.com.google.chrome.p22bCa
... etc
None of the files exist, though:
$ ls /private/var/folders/zz/zzTLi2haPMrCYxEbpkwFmS+++TI/-Tmp-/.com.google.chrome.p22bCa
ls: /private/var/folders/zz/zzTLi2haPMrCYxEbpkwFmS+++TI/-Tmp-/.com.google.chrome.p22bCa: No such file or directory
Listing the directory doesn't show any files or directories like this existing:
$ ls -lA /private/var/folders/zz/zzTLi2haPMrCYxEbpkwFmS+++TI/-Tmp-/
total 0
drwxr-xr-x 3 mike staff 102 Jul 24 18:14 TemporaryItems
srwxr-xr-x 1 mike staff 0 Jul 24 12:10 com.apple.notify.206.32
srwxr-xr-x 1 mike staff 0 Jul 24 12:10 com.apple.notify.206.33
drwxr-xr-x 2 mike staff 68 Jul 24 18:25 hsperfdata_mike
What's going on here? Why can't I access the temporary files?
Since my goal is to copy the flash file for later viewing, is there anything else I can do?
Asked by Mike Mazur
(575 rep)
Jul 24, 2011, 10:13 AM
Last activity: Aug 30, 2019, 05:21 AM
Last activity: Aug 30, 2019, 05:21 AM