Reply
Thread Tools
Posts: 84 | Thanked: 21 times | Joined on Feb 2010
#1
I am not very familar with xterm so I decided to try it out. I installed roots and entered a command I saw on the internet few days ago. the command is
hal-device bme | awk '/g.c/ {curr = $3}; /g.la/ {last = $3} END {print curr"/"last" mAh"}'
.
So I want to will this cause any harm to my n900?
 
kingoddball's Avatar
Posts: 1,187 | Thanked: 816 times | Joined on Apr 2010 @ Australia
#2
That command looks like it's printing text of battery power left.

It should not harm. May I ask why you don't just use one of the battery widgets that are available?

Be cautious playing in 'root' when you install it.
Can be harmful if you use the wrong commands.
 

The Following User Says Thank You to kingoddball For This Useful Post:
Posts: 84 | Thanked: 21 times | Joined on Feb 2010
#3
I was afraid that this might've damaged my 900. Thanks for answering my question.
 
Posts: 29 | Thanked: 22 times | Joined on Mar 2010
#4
yeah, be very careful executing commands you find on the InterWeb. (especially those that involve "rm -rf *")
 
kingoddball's Avatar
Posts: 1,187 | Thanked: 816 times | Joined on Apr 2010 @ Australia
#5
All it seems to do is print remaining battery mAh.

You would be better off getting a widget or app.
Not playing with random commands. I wouldn't use it if I could find a GUI app.

Edit:
What does rm -rf do? I understand rm and rmdir etc. Just the '-rf'?

Last edited by kingoddball; 2010-04-20 at 03:24.
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#6
Originally Posted by kingoddball View Post
Edit:
What does rm -rf do? I understand rm and rmdir etc. Just the '-rf'?
The "-r" option tells it to run recursively (i.e. for all subdirectories as well) and the "-f" option tells it to force the removal (i.e. ignore permissions (if possible), not prompt, etc). If you run it as root, then it will delete everything under the directory you run it from.
 
Reply


 
Forum Jump


All times are GMT. The time now is 01:53.