Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watch command throws error #20

Open
RonanCodes opened this issue Feb 9, 2017 · 1 comment
Open

watch command throws error #20

RonanCodes opened this issue Feb 9, 2017 · 1 comment

Comments

@RonanCodes
Copy link
Contributor

From Step 3 Using Node:

watch -n 5000 --differences node server.js

Msg:

> Watching /Users/name/scripts/grab_packt
sh: server.js: command not found

Are you using this package?
https://github.com/mikeal/watch

If so I cannot find a reference to -n or --differences in the README.

@jrial
Copy link

jrial commented Jul 18, 2017

Watch is a standard Linux command, part of the procps package.

From the man page:

OPTIONS
       -d, --differences [permanent]
              Highlight  the  differences between successive updates.  Option will read optional argument that changes highlight to
              be permanent, allowing to see what has changed at least once since first iteration.

       -n, --interval seconds
              Specify update interval.  The command will not allow quicker than 0.1 second interval, in which  the  smaller  values
              are converted.

Not that it still matters; since the captcha on that page, this downloader no longer works. But at least you know what "watch" is now. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants