> running external commands and reuse their output isn't as easy as it
should be.

How hard is it to do exec rm -rf /

or if you are coffeescript-impaired ...

exec('rm -rf /');



On Fri, Nov 22, 2013 at 6:33 AM, lith <[email protected]> wrote:

>
>
>> I'm curious on people's experiences with using Node.JS for sys-admin
>> scripts or non-Web glue stuff - i.e. the sorts of things you might use Perl
>> or Python for (e.g. log parsing, manipulating config files etc.)
>>
>> Is Node.JS suitable for these things?
>>
>
> The main hurdle is node's asynchronous paradigm that doesn't exactly lend
> itself to script logic. E.g. running external commands and reuse their
> output isn't as easy as it should be. Most of the time there are npm
> packages to make life easier (for the moment) but on the long run you'd
> better learn to write your scripts in an async manner -- if you want to
> take that road. So far, I like the async scripts I've written in node,
> which I would have otherwise written in ruby.
>
>  --
> --
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to