569 reputation
10
bio website kottland.net
location Lund, Sweden
age 27
visits member for 9 months
seen May 17 at 6:34
stats profile views 20

electrical engineering student with focus on programming. Familiar with C/C++/Java and so on.


May
16
comment udev rule not working
If you restarted the computer, then udev was already restarted.
May
16
comment udev rule not working
Also did you restart udev after making changes? udev should react to changes in the settings, but that require inotify to be enabled in the kernel. That might not be the case in embedded systems and the like.
May
16
comment udev rule not working
Writing udev rules is a very unforgiving task, the slightest error and nothing will happen. Have you tried moving your rule to the beginning of the list? i.e., rename the file to 10-local.rules
May
16
comment udev rule not working
Somewhat, but you don't need to understand it. It is useful as a util :). Btw, I think you misspelled ATTR, should be ATTRS for usb properties.
May
16
answered udev rule not working
May
16
comment udev rule not working
You can use the command at raftaman.net/?p=343 to check for more information on the usb drive. Also, the C program on the bottom of kernel.org/doc/pending/hotplug.txt is really useful for listening to uevents, which makes it easier to see what information you can use. Could also be as simple as some earlier rule is declared as final rule.
May
15
comment How to create a kiosk-type application for RHEL6?
The easiest approach I can think is to set up RHEL to automatcally log in to some account that is configured to autostart your application. You can use libraries like Qt or GTK to create a fullscreen GUI application.
Apr
25
comment How to find Heap memory of a running process?
Check /proc/$PID/maps, wher $PID is the pid of the process you want to examine.
Apr
24
comment How to access u boot environment from linux?
I don't think that you need to change the fw_env.*. I think should try the strace approach, this usually give a good indication on what is causing the problem. I've created a gist that shortly describes how to build strace on gist.github.com/ElektroKotte/5450136.
Apr
24
awarded  Nice Answer
Apr
23
comment How to access u boot environment from linux?
Yes, fw_env.config should be placed in /etc on target. It seems your fw_env.config is missing the column nbr. sectors, but apart from that it looks OK. Please try strace on the fw_printenv, this is really useful to narrow the error down. It could be that you are missing some libraries or something like that.
Apr
22
answered How to access u boot environment from linux?
Apr
22
awarded  Custodian
Apr
22
reviewed Approve suggested edit on Why read() is slower than getc()?
Apr
22
answered Why read() is slower than getc()?
Apr
22
comment Fedora 18: can't resolve hosts
Would be nice if you could elaborate a bit more. Is it a valid host you are trying to resolve? which util do you use to resolve the host (host google.com)? Is your network interface up (ip addr)?
Apr
15
comment Deleting all C comments with sed
Depending on what your are trying to accomplish, one possible solution to remove comments could be to run only the preprocessing step of the compilation. e.g., gcc -E test.c > test_p.c. This will however include header files in the C-file. Otherwise I think you are better of with some kind of utility that is capable of parsing C-files, such as some kind of beautifier.
Mar
26
comment How to forbid the execution of /bin/rm -f *?
yeah, this doesn't help very much if you use absolute paths. But I really wanted to share the teaching of my professor ;)
Mar
26
revised How to forbid the execution of /bin/rm -f *?
fixed error
Mar
25
answered How to forbid the execution of /bin/rm -f *?