On Sat, Jan 28, 2012 at 06:06:33PM +0000, Mick wrote: > > > another application (e.g. a browser) but unlike xpdf I have not found a > > > way of saving a file once opened without having to redownload it with > > > the browser. > > > > I'd look into /tmp, it'll probably be there. > > It used to be the case that FF would drop temporary downloads in /tmp, but I > can't find them in there any more. This is of particular interest for some > flash videos which after I watched them I decide to save them, but can't find > them anywhere. Ditto with Chromium, not idea where it saves such temporary > files.
[getting OT regarding xpdf] Yes, that's the flash plugin. It creates a file and then immediately deletes it again. But thanks to the open architecture of a Linux system you can get it back by copying from the file handle in /proc. I have a little script for that which I'll attach to this message. It looks for all file handles that link to a (now deleted) file called /tmp/Flash* and restores the link, printing out the filename it thusly recovered. It could be a bit refined by only looking for handles of flash player PIDs, but I guess a human wouldn't perceive the difference anyway. For youtube, I recommend youtube-dl. It lets you select the video format and resolution (as offered), downloads the video and automatically renames the file. -- Gruß | Greetings | Qapla' I forbid any use of my email addresses with Facebook services. The problem with Perl jokes is that only the teller understands them.
#!/bin/sh for h in `find /proc/*/fd -ilname "/tmp/Flash*" 2>/dev/null`; do path=`readlink "$h" | cut -d' ' -f1` [ -f "$path" ] || { echo "$path" ln -s "$h" "$path"; } done
pgpGnQDeIJ1qs.pgp
Description: PGP signature