Hi, You could also consider looking into these alternatives:
* https://metacpan.org/pod/Mojo::IOLoop::Subprocess - Run long running (blocking) code in a sub process * https://metacpan.org/pod/Mojo::IOLoop::ForkCall - Pretty similar to Subprocess * https://metacpan.org/pod/Mojo::IOLoop::ReadWriteFork - Similar to Subprocess/ForkCall, but you can write and read to the interactive process * https://metacpan.org/pod/Minion - Not quite the same, but it could be what you really want. On Tuesday, October 31, 2017 at 1:50:32 AM UTC+8, Stefan Adams wrote: > > > > On Mon, Oct 30, 2017 at 8:56 AM, jay m <j...@purplewire.com> wrote: > >> pascal, >> >> system() and backticks work fine from a Mojolicious app. your problem is >> probably one of 3 things: >> >> * the environment inside the mojo app is different than your interactive >> shell environment. compare %ENV to your shell's printenv >> * the current working directory when running the shell command isn't what >> you expected. try print `pwd`; >> * the user running the mojo app doesn't have the right permissions for >> the command or files you're trying to use >> > > Great advice. I might also add that you need to consider how long the > bash script will take to execute and the impact it will have on the > Mojolicious application itself. Being new to Mojolicious, I'd advise you > to read up on blocking and non-blocking operations > <http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#Blocking-and-non-blocking-operations> > . > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To post to this group, send email to mojolicious@googlegroups.com. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.