root/hydranode/utils/hncmd.sh
| Revision 1246, 326 bytes (checked in by madcat, 4 years ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | # This one-liner sends the passed argument (assumably a file link) to hydranode shell, |
| 3 | # issuing the command "download $1". Requires "netcat" utility to work. |
| 4 | # |
| 5 | # This can be used to associate file links in browser with hydranode, by passing the urls |
| 6 | # to this script. |
| 7 | |
| 8 | echo -e do $1 \\r\\n | nc localhost 9999 -q 1 |
Note: See TracBrowser for help on using the browser.
