Re: scripts imported into dancer
[email protected] ("Dr. Saiful Amin") Sun, 11 Sep 2016 01:39:38 +0530
| Newsgroups | perl.perl4lib |
|---|---|
| Message-ID | <CALetcjOTjAE=TCOapgeTY0fXrfF_xS0oFSgK=UYb3O0gWTyNCA@mail.gmail.com> |
--001a113d1c6ae2f743053c2cd8fa Content-Type: text/plain; charset=UTF-8 Hi Marios, Welcome to the forum. It helps if you can share some code samples of your efforts so far. Not a hacker myself, but a library specialist with some experience in MARC-related coding. Long back I did a small project in CGI-app (I think it pre-dates Dancer like framework) to convert Excel files into MARC21. It was not meant to be in production, was rather a personal project for learning web-app development. I've uploaded the code in github [1], in case you find it useful. [1] https://github.com/saiful-semantic/xl2mrc Best regards, Saiful Amin On Sat, Sep 10, 2016 at 7:10 PM, Marios lyberak <[email protected]> wrote: > Hello great minds, > > not a perl hacker, so please bare with my questions... > > i am trying to make my work served via Dancer. I have many scripts, that i > run in the console: > > perl somecommand filetobeprocessed.mrc > > and then in the folder i ran the command, i get the result file. > > My question is how i could improve this process, > > a) how i could combine all scripts that take as input the same input file > into a Dancer application. > > When the last script finishes with creating the last output file, then i > guess Dancer will redirect to another page, where one could download all > output (produced) files. > > b) in order to know when all scripts are finished, i need to use promises? > > I would love to hear your pro approach, and if possible, if you could > point me to a prototype dancer web app that works like this... > > c) last, if you had any suggestions, on how i should arrange the folders > in this web app, for example where it would be best to keep the input mrc > files, where to keep the code, where to store the output files... > > Looking forward to your collective wisdom answers, > > Cheers > > --001a113d1c6ae2f743053c2cd8fa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div style=3D"font-family:trebuchet ms,sans-serif" class= =3D"gmail_default">Hi Marios,<br><br>Welcome to the forum. It helps if you = can share some code samples of your efforts so far.<br><br>Not a hacker mys= elf, but a library specialist with some experience in MARC-related coding. = Long back I did a small project in CGI-app (I think it pre-dates Dancer lik= e framework) to convert Excel files into MARC21. It was not meant to be in = production, was rather a personal project for learning web-app development.= I've uploaded the code in github [1], in case you find it useful.<br><= br>[1] <a href=3D"https://github.com/saiful-semantic/xl2mrc">https://github= .com/saiful-semantic/xl2mrc</a><br></div><div class=3D"gmail_extra"><br cle= ar=3D"all"><div><div class=3D"gmail_signature" data-smartmail=3D"gmail_sign= ature"><div dir=3D"ltr">Best regards,<br>Saiful Amin<br></div></div></div> <br><div class=3D"gmail_quote">On Sat, Sep 10, 2016 at 7:10 PM, Marios lybe= rak <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" targe= t=3D"_blank">[email protected]</a>></span> wrote:<br><blockquote = class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid= ;padding-left:1ex"><div dir=3D"ltr">Hello great minds,<div><br></div><div>n= ot a perl hacker, so please bare with my questions...</div><div><br></div><= div>i am trying to make my work served via Dancer. I have many scripts, tha= t i run in the console:</div><div><br></div><div>perl somecommand filetobep= rocessed.mrc</div><div><br></div><div>and then in the folder i ran the comm= and, i get the result file.</div><div><br></div><div>My question is how i c= ould improve this process,=C2=A0</div><div><br></div><div>a) how i could co= mbine all scripts that take as input the same input file into a Dancer appl= ication.</div><div><br></div><div>When the last script finishes with creati= ng the last output file, then i guess Dancer will redirect to another page,= where one could download all output (produced) files.</div><div><br></div>= <div>b) in order to know when all scripts are finished, i need to use promi= ses?</div><div><br></div><div>I would love to hear your pro approach, and i= f possible, if you could point me to a prototype dancer web app that works = like this...</div><div><br></div><div>c) last, if you had any suggestions, = on how i should arrange the folders in this web app, for example where it w= ould be best to keep the input mrc files, where to keep the code, where to = store the output files...</div><div><br></div><div>Looking forward to your = collective wisdom answers,</div><div><br></div><div>Cheers</div><div>=C2=A0= </div></div> </blockquote></div><br></div></div> --001a113d1c6ae2f743053c2cd8fa--