On Mon, Oct 30, 2017 at 8:56 AM, jay m <[email protected]> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to