Ruby execute script

Hi everyone
I’m trying to use scripts like ghost script and imagemagick
Can ruby call this script? I looking for something like exec(“convert
sample.pdf sample.jpeg”)

thank you

Can ruby call this script? I looking for something like
exec(“convert sample.pdf sample.jpeg”)

Sure, look at the Kernel.system and Kernel.exec methods, but you might
want to look at mini_magick for a ruby wrapper around command-line
imagemagick.

  • donald

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs