Hi everyone,
I was trying to clean my /tmp with tmpwatch and noticed a really large file sitting there, and I have no clue what could have generated that. Anyone has any ideas?
$ lt /tmp/magick-XXWa5SP9.pam -rw-rw-r--. 1 <me> <me> 13G Oct 29 01:47 /tmp/magick-XXWa5SP9.pam
$ file /tmp/magick-XXWa5SP9.pam /tmp/magick-XXWa5SP9.pam: Netpbm PAM image file
$ stat /tmp/magick-XXWa5SP9.pam File: `/tmp/magick-XXWa5SP9.pam' Size: 13651351424 Blocks: 26662808 IO Block: 4096 regular file Device: 802h/2050d Inode: 91061 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( <my_uid>/ <me>) Gid: ( <my_gid>/ <me>) Access: 2010-10-29 01:47:17.261127261 -0700 Modify: 2010-10-29 01:47:16.963020730 -0700 Change: 2010-10-29 01:47:16.963020730 -0700
Have you been using ImageMagick (convert, display) for image manipulation? It uses /tmp as a temporary location while processing images.
Regards, Mike Klinke
Hi,
On Saturday 30 October 2010 08:28 AM, Mike Klinke wrote:
Have you been using ImageMagick (convert, display) for image manipulation? It uses /tmp as a temporary location while processing images.
Yes I use display quite a bit and I was trying out compare yesterday, but that was with 2 files less than 30kb. Could that have generated a 13G file?
Regards, Mike Klinke
Thanks for the response.
On Sat, 30 Oct 2010 10:29:26 -0700 Suvayu Ali fatkasuvayu+linux@gmail.com wrote:
Hi,
On Saturday 30 October 2010 08:28 AM, Mike Klinke wrote:
Have you been using ImageMagick (convert, display) for image manipulation? It uses /tmp as a temporary location while processing images.
Yes I use display quite a bit and I was trying out compare yesterday, but that was with 2 files less than 30kb. Could that have generated a 13G file?
Easy way to check. Delete the file (it is in /tmp, after all) and then run ImageMagick again on the same two files while watching /tmp.
On 30 October 2010 11:17, stan gryt2@q.com wrote:
Easy way to check. Delete the file (it is in /tmp, after all) and then run ImageMagick again on the same two files while watching /tmp.
I tried those, doesn't seem to reproduce the file (or any file for that matter). As far as I recall I tried two things which I don't usually do,
$ convert image1.png image2.png output.png
and from a remote host,
$ cat image.png | ssh <localhost> display
The 2nd one although brought up an ImageMagick window, didn't display the image file both times.
I have a hunch if ImageMagick is the author of the tempfile, it is probably the 2nd thing I tried.
Thanks for the suggestions everyone.
On 30Oct2010 18:53, suvayu ali fatkasuvayu+linux@gmail.com wrote: | On 30 October 2010 11:17, stan gryt2@q.com wrote: | > Easy way to check. Delete the file (it is in /tmp, after all) and then | > run ImageMagick again on the same two files while watching /tmp. | | I tried those, doesn't seem to reproduce the file (or any file for | that matter). As far as I recall I tried two things which I don't | usually do, | | $ convert image1.png image2.png output.png | | and from a remote host, | | $ cat image.png | ssh <localhost> display | | The 2nd one although brought up an ImageMagick window, didn't display | the image file both times.
You might need to say "display -", not just "display".
On Sunday 31 October 2010 08:02 PM, Cameron Simpson wrote:
| and from a remote host, | | $ cat image.png | ssh<localhost> display | | The 2nd one although brought up an ImageMagick window, didn't display | the image file both times.
You might need to say "display -", not just "display".
That works! Thanks a lot. :)
suvayu ali wrote:
Hi everyone,
I was trying to clean my /tmp with tmpwatch and noticed a really large file sitting there, and I have no clue what could have generated that. Anyone has any ideas?
$ lt /tmp/magick-XXWa5SP9.pam -rw-rw-r--. 1 <me> <me> 13G Oct 29 01:47 /tmp/magick-XXWa5SP9.pam
Just a wild guess:
magick spelled with a ck can likely only be one thing, ImageMagick (or GraphicsMagick), unless you are involved in the study of Olde Englyshe.