the answer is: it depends. Node is a good choice to offer a webinterface to a conglomerate of scripts on os level. in fact this is the big strength of node to handle much i/o. But the question about rewriting has nothing to do with it, it's higher order question: - are your scripts doing their jobs properly? are they easy to maintain? if yes, then let them be. if no and they need a rewrite, then node might be a good way here too. - what tasks are this? node is not good at heavy calculations, usually we spin up a new process or call another script for it, i.E. we call imagemagick for resizing images in our service via child_process.
you have to go through your scripts and answer this questions. Am Dienstag, 8. Januar 2013 03:39:25 UTC+1 schrieb Suraj Singh Thapa: > > Thanks Tim, > > Performance wise do you consider having Perl/shell script in back-end and > node as front-end is a good architecture? or is it better to re-write task > done by Perl in node. I want to have clear idea about, > > - Is it better to use node just as a bridge between webpage and > Perl/Shell. > > > Any kind of suggestion would be appreciated. > > Cheers, > > > > > On Tuesday, January 8, 2013 3:14:38 AM UTC+11, Tim Caswell wrote: >> >> Node can easily call other processes and has full control over the stdio >> streams if desired. (or there are convenience wrappers if you don't need >> full control) Look at the child_process APIs. >> >> >> On Sun, Jan 6, 2013 at 9:41 PM, Suraj Singh Thapa >> <thapa.s...@gmail.com>wrote: >> >>> Hi, I have number of the Perl and shell scripts in server(Linux) to >>> automate the software build process. I want to >>> create web interface so that other user can easily run my scripts. >>> * Have a webpage, user select the field and press button to launch >>> corresponding process. >>> * webpage should show progress, Perl/shell script standard output >>> running in server. >>> >>> Could some one can suggest me if Node can be used as my fronted to >>> create web interface? >>> As I am novice so any suggestion from experience people will >>> be appreciated. >>> >>> Thanks >>> >>> -- >>> Job Board: http://jobs.nodejs.org/ >>> Posting guidelines: >>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >>> You received this message because you are subscribed to the Google >>> Groups "nodejs" group. >>> To post to this group, send email to nod...@googlegroups.com >>> To unsubscribe from this group, send email to >>> nodejs+un...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/group/nodejs?hl=en?hl=en >>> >> >> -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en