808 reputation
316
bio website kottland.net
location Lund, Sweden
age 28
visits member for 2 years, 1 month
seen yesterday

Development engineer working mostly with embedded linux.


Aug
1
awarded  Yearling
Jul
18
awarded  Popular Question
Jul
8
accepted Matching several patterns on one line
Jul
8
comment Matching several patterns on one line
I think that head is running into the same problem as sed. Running tty0tty | head -n 1 doesn't give any output. Tried to add the 'unbuffered' flag to sed, but that did not seem to help. Using unbuffer command made it work though. The hackiness is now over 9000 ;). The line I finally used is read left right < <(unbuffer tty0tty | head -n 1 | sed -e 's/[()<=>]//g' &)
Jul
8
comment Matching several patterns on one line
Neat trick :-). Seems to be almost working. Only problem seems to be that tty0tty have to keep running, that is why I started it as tty0tty &. Seems like sed keeps waiting for more input.
Jul
8
asked Matching several patterns on one line
Jul
2
awarded  Curious
Jun
27
comment How to determine who started a process?
Checking the parent process id might reveal some more info. Try running pstree
Jun
17
awarded  Constituent
Jun
10
awarded  Caucus
Jun
7
awarded  Revival
May
30
awarded  Custodian
May
30
reviewed No Action Needed How to change permissions/owner or delete Downloads folder (owner: root wheel)?
Apr
22
accepted Why does to order of the parameters affect the files found by `find`?
Apr
22
comment Why does to order of the parameters affect the files found by `find`?
Huh, that would also explain why giving -print0 as the first parameter lists all the files. Makes sense, but it's also a bit unexpected. Thanks a lot :)
Apr
22
asked Why does to order of the parameters affect the files found by `find`?
Apr
19
awarded  Popular Question
Mar
20
comment C# project not building. Error says mono is not configured correctly. On a rhel 6.5 Workstation
have you looked in /usr/lib/mono/3.5 Seems like it's there eclipse is looking.
Mar
13
accepted Encrypting loopback images without using a loopback device
Jan
16
comment Some garbage characters in Linux terminal
Could be that you are trying to print from a buffer that is not null terminated. For example a buffer that is not big enough to contain "cannot open GPIO device file /sys/class/gpio/g"