Hi,
I found a way to login via putty:
echo $METEOHUBHW returns "plug", so it's correct. All-sensors.txt reports "sheevaplug" in actual_system_platform_text.
Can I type then "date >> /tmp/histeval0.log" ?
How can I check the output?
And how can I revert the change to the script?
SEQMIN1 Explanation
Moderator: Mattk
- YJB
- Platinum Boarder
- Posts: 387
- Joined: Thu Feb 19, 2009 5:53 pm
- Location: Venhuizen, Netherlands
- Contact:
Re: SEQMIN1 Explanation
This is the current version of the histeval0 script:
~
Modify it in the following manner:
And after a couple of minutes check the output:
Once you're finished testing you can simply remove the following line from the histeval0 script:
Code: Select all
#!/bin/sh
if [ "$METEOHUBHW" == "NSLU2" ]
then
mod=$(((`date +"%s"` / 60) % 3))
if [ $mod -gt 0 ]
then
exit 0
fi
fi
/home/meteohub/wmr928eval -c min1 -t -3720 -w /data/weather/ -s /home/meteohub/w
mr928eval.conf -S
Modify it in the following manner:
Code: Select all
#!/bin/sh
if [ "$METEOHUBHW" == "NSLU2" ]
then
mod=$(((`date +"%s"` / 60) % 3))
if [ $mod -gt 0 ]
then
exit 0
fi
fi
date >> /tmp/histeval0.log
/home/meteohub/wmr928eval -c min1 -t -3720 -w /data/weather/ -s /home/meteohub/w
mr928eval.conf -S
Code: Select all
cat /tmp/histeval0.log
Code: Select all
date >> /tmp/histeval0.log
Re: SEQMIN1 Explanation
Sorry that I ask you again: How can I modify the script?
I have no idea what I have to type.
I have no idea what I have to type.
- YJB
- Platinum Boarder
- Posts: 387
- Joined: Thu Feb 19, 2009 5:53 pm
- Location: Venhuizen, Netherlands
- Contact:
Re: SEQMIN1 Explanation
As you can see in the previous post it's a matter of adding one line into the original script (and remove it later on).
Look for the difference between the 2 scripts:
I'm normally using vi to change stuff in *NIX, but then I'm a kinda old school guy. There are other ways as using ultraedit or whatsoever.
On the other hand, if you are not comfortable changing stuff in Linux I would recommend to stay away from it, and get somebody involved who knows Linux, and who can logon to your system and do the change for you. Otherwise you might break your system
Look for the difference between the 2 scripts:
Code: Select all
date >> /tmp/histeval0.log
On the other hand, if you are not comfortable changing stuff in Linux I would recommend to stay away from it, and get somebody involved who knows Linux, and who can logon to your system and do the change for you. Otherwise you might break your system