On Aug 18, 2013, at 11:20 PM, Mark Hahn <[email protected]> wrote:
> Thanks. I should have looked for these. It didn't occur to me.
>
No worries!
—ravi
> On Sun, Aug 18, 2013 at 6:18 PM, // ravi <[email protected]> wrote:
> On Aug 18, 2013, at 8:41 PM, Mark Hahn <[email protected]> wrote:
> > I'll try again using these ideas.
> >
> > It was mentioned that I'm not using a tail module. Does such a thing
> > exist? I'm all for non-wheel-reinvention.
> >
>
> A quick search brought up:
>
> https://npmjs.org/package/tailnative
> https://npmjs.org/package/tail (CoffeeScript!)
> https://npmjs.org/package/tailed
>
> This is assuming you have no control over the process that is outputting the
> stream you want to read.
>
> —ravi
>
>
>
> > > I think you may want to run your source through coffeescript first ;)
> >
> > :-)
> >
> >
> > On Sun, Aug 18, 2013 at 5:28 PM, Nathan White <[email protected]>
> > wrote:
> > If this is indeed your test file it won't output. I think you may want to
> > run your source through coffeescript first ;)
> >
> >
> > On Aug 18, 2013, at 3:52 PM, Mark Hahn <[email protected]> wrote:
> >
> >> When I run this bash script ...
> >>
> >> #!/bin/bash
> >> tail -f log &
> >> echo "tail is working" >> log
> >>
> >> it prints out "tail is working" as expected.
> >>
> >> My question is how can I do the same thing with a node command-line
> >> script? I've tried everything but I can't come up with anything that
> >> works. Most of my tries hang with the child_process never returning.
> >>
> >> By node command-line script I mean a file like this ...
> >>
> >> #!/usr/bin/env node
> >> console.log "I'm a command-line script"
> >>
> >>
> >> --
> >> --
> >> 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.
> >
> >
> > --
> > --
> > 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.
>
>
> --
> --
> 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.