[nodejs] command-line script question

2013-08-18 Thread Mark Hahn
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

Re: [nodejs] command-line script question

2013-08-18 Thread // ravi
On Aug 18, 2013, at 5:52 PM, Mark Hahn 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'v

Re: [nodejs] command-line script question

2013-08-18 Thread // ravi
On Aug 18, 2013, at 7:21 PM, // ravi wrote: > On Aug 18, 2013, at 5:52 PM, Mark Hahn 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 th

Re: [nodejs] command-line script question

2013-08-18 Thread Nathan White
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 wrote: > When I run this bash script ... > > #!/bin/bash > tail -f log & > echo "tail is working" >> log > > it prints ou

Re: [nodejs] command-line script question

2013-08-18 Thread Mark Hahn
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. > I think you may want to run your source through coffeescript first ;) :-) On Sun, Aug 18, 2013 at 5:28 PM, Nathan White wrote: > If this is ind

Re: [nodejs] command-line script question

2013-08-18 Thread // ravi
On Aug 18, 2013, at 8:41 PM, Mark Hahn 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/packag

Re: [nodejs] command-line script question

2013-08-18 Thread Mark Hahn
Thanks. I should have looked for these. It didn't occur to me. On Sun, Aug 18, 2013 at 6:18 PM, // ravi wrote: > On Aug 18, 2013, at 8:41 PM, Mark Hahn 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

Re: [nodejs] command-line script question

2013-08-18 Thread Shawn Wilson
odejs] command-line script question Thanks. I should have looked for these. It didn't occur to me. On Sun, Aug 18, 2013 at 6:18 PM, // ravi wrote: > On Aug 18, 2013, at 8:41 PM, Mark Hahn wrote: > > I'll try again using these ideas. > > > > It was mentioned that I

Re: [nodejs] command-line script question

2013-08-19 Thread // ravi
On Aug 18, 2013, at 11:20 PM, Mark Hahn 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 wrote: > On Aug 18, 2013, at 8:41 PM, Mark Hahn wrote: > > I'll try again using these ideas. > > > > It w