Welcome Guest | Login

Can I use capistrano or other means to run periodic task ?


Suppose I want to occasionally convert a few gif files into wbmp files so I can view them on my cell phone. I'm not sure if the conversion would occur in time or the request might time out. Perhaps I might want to display a message and then have some background task do the conversion. I saw that capistrano can do that or there are other means, but will it work on this server, that is a background task, daemon etc ?

2008-06-20 07:38 PM

In order to convert "gif files into wbmp files" using capistrano you need to write the corresponding conversion codes in the Capfile. You can also restart daemons by given commands inside the  Capfile. If you are using Imagemagick then you can use the mogrify command to convert "gif files into wbmp files".

===
mogrify -format wbmp <file.gif>|<folder/*.gif>
===

2008-06-20 08:47 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!