ABHIONLINUX
Site useful for linux administration and web hosting

2011/04/25

/bin/mv: Argument list too long

When you are trying to move large number of files such 200000 files. you can use the command

mv  * /path/to/move

If you try the above command, you will be getting the error  "/bin/mv: Argument list too long"


You can use the command given below to avoid this error ,


find /path/to/file -type f | xargs -i mv "{}" /path/to/move


Try this out.. :)

2011/04/19

FFmpeg :: make: *** [ffmpeg_frame.lo] Error 1/

Sometimes you will get the error given below when installing ffmpeg-php in your server.
FFmpeg :: make: *** [ffmpeg_frame.lo] Error 1


Fix:
modify the file ffmpeg_frame.c and replace every instance of PIX_FMT_RGBA32 with PIX_FMT_RGB32


Now run make and make install


Eg: 
  • vi ffmpeg_frame.c
  • :%s/PIX_FMT_RGBA32/PIX_FMT_RGB32
  • :wq!

Another method is 
  • cd /path/to/ffmpeg-php-0.6.0
  • cp -aP ffmpeg_frame.loT ffmpeg_frame.lo
  • make clean
  • ./configure