Forwarder debug: Difference between revisions

From lechacal
Jump to navigation Jump to search
(Created page with "First of all connect to the emonWRT with SSH. Use [Putty http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe] program if you are on windows. Just open a terminal in Linux...")
 
No edit summary
Line 1: Line 1:
First of all connect to the emonWRT with SSH.
First of all connect to the emonWRT with SSH.
Use [Putty http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe] program if you are on windows. Just open a terminal in Linux.  
Use [Putty | http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe] program if you are on windows. Just open a terminal in Linux.  


For this you will need to issue the ps command to find the process number of the forwarder program:
For this you will need to issue the ps command to find the process number of the forwarder program:
$ ps | grep emon
$ ps | grep emon


From the output of this command you should see a line with /usr/bin/emonwrt_forwarder.sh. Take a note of the first number on that line (say it is 1280). It should look like:
From the output of this command you should see a line with /usr/bin/emonwrt_forwarder.sh. Take a note of the first number on that line (say it is 1280). It should look like:
Line 9: Line 9:


then kill the process with:
then kill the process with:
$ kill 1280
$ kill 1280


Then run the process manually like so:
Then run the process manually like so:
$ /usr/bin/emonwrt_forwarder.sh
$ /usr/bin/emonwrt_forwarder.sh

Revision as of 18:52, 18 May 2014

First of all connect to the emonWRT with SSH. Use [Putty | http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe] program if you are on windows. Just open a terminal in Linux.

For this you will need to issue the ps command to find the process number of the forwarder program:

$ ps | grep emon

From the output of this command you should see a line with /usr/bin/emonwrt_forwarder.sh. Take a note of the first number on that line (say it is 1280). It should look like:

1280 root      1536 S    {emonwrt_forward} /bin/sh /usr/bin/emonwrt_forwarder.sh

then kill the process with:

$ kill 1280

Then run the process manually like so:

$ /usr/bin/emonwrt_forwarder.sh