Replies: 2 comments 2 replies
-
See the cookbook for subprocesses. You'll need to play around with what you need for the inputs. Everything you should need to be successful with this should be covered by the Tutorial Guide.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
If you want the actual output, you can capture STDOUT using https://metacpan.org/pod/Mojo::IOLoop::ReadWriteFork
However if the script runs for a long time and you want to guaranty that it completes you might want to look into https://docs.mojolicious.org/Minion instead. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a fairly complex perl code that runs in batch mode, command line. I need to build a simple web app to run the code and display the output. The program, in the command line mode takes as input a text file utf8 encoding, some optional arguments and displays the output or writes it to a file.
example: perl ./my appl.pl -input= input.txt > result.txt
The idea is the web version either gets the file name or reads the input text from a text field, passes the info to the perl code and writes out the out put file and also displays the result in a text field
Any comments, codes, etc is truly appreciated. I really need lots of hand holding
Thanks
Bid
Beta Was this translation helpful? Give feedback.
All reactions