Page 2 of 2
Re: SEQMIN1 Explanation
Posted: Thu Mar 22, 2012 12:32 am
by cgn
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?
Re: SEQMIN1 Explanation
Posted: Thu Mar 22, 2012 12:39 am
by YJB
This is the current version of 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
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:
Re: SEQMIN1 Explanation
Posted: Thu Mar 22, 2012 12:50 am
by cgn
Sorry that I ask you again: How can I modify the script?
I have no idea what I have to type.
Re: SEQMIN1 Explanation
Posted: Fri Mar 23, 2012 11:00 am
by YJB
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