Reputation
21,679
Next tag badge:
97/100 score
27/20 answers
Badges
2 26 76
Newest
 Nice Answer
Impact
~1.7m people reached

  • 0 posts edited
  • 6 helpful flags
  • 1,994 votes cast
May
2
comment what's wrong with embedding php scripts inside bash ones?
Can you re-phrase the question(s)? There's a lot going on, but I suspect that part of your problem is making too many assumptions. For example: "Thr first symbol is probably cut off by php". Sure, that seems like what your 5.sh shows, but why would the PHP interpreter cut off a '<'? It doesn't cut off other leading characters. Also, you're missing the '?>' after the PHP code, in 2.sh and others.
May
1
answered How does Linux know the Location of File Data on Disk
Apr
24
awarded  Citizen Patrol
Apr
24
answered Specifying a generic interpreter for a program like expect?
Apr
22
answered Why read() is slower than getc()?
Apr
22
answered where are the “files” of ipcs and why are named pipes (mkfifo) not listed in ipcs
Apr
17
comment sigaction(7): semantics of siginfo_t's si_code member
I only got the si_code value of 0x80 once, I've never gotten it again. It took my program a while to dump core again, and I had set ulimits incorrectly the first time, so I only got two more SIGSEGVs neither of which claimed to be "from the kernel". Still puzzled by that one.
Apr
17
comment sigaction(7): semantics of siginfo_t's si_code member
Getting a core dump allowed me to figure out the underlying problem: a data race condition, where a file could get created and then noticed by my program. The file could get deleted before my program tried to open it. I didn't handle ENOENT correctly, causing problems up the call stack.
Apr
17
accepted sigaction(7): semantics of siginfo_t's si_code member
Apr
15
answered cannot mount .img file - “not a directory” error
Apr
13
answered Start Repl/CLI in Background and Feed Commands
Apr
10
revised (Ab) use Apache as a proxy
Fix misspelling, add stop/start advice.
Apr
10
answered Adblock rule to block g+ / twitter / etc.
Apr
10
answered (Ab) use Apache as a proxy
Apr
9
answered wireless interface stops working, netcfg reports no network found
Apr
9
comment wireless interface stops working, netcfg reports no network found
Give us a little more info. Give us the lspci output for the wireless interface itself. lspci says this about my arch wireless interface: "05:00.0 Ethernet controller: Atheros Communications Inc. AR5212/AR5213 Wireless Network Adapter (rev 01)"
Apr
8
answered how to uniformly execute benchmarks on linux
Apr
5
comment sigaction(7): semantics of siginfo_t's si_code member
What exactly does "A segmentation violation that occurs as a result of trying to access kernel memory" mean? I just get regular address not mapped to object SIGSEGV if I try to dereference 0xfffffc0000004000, for example.
Apr
4
asked sigaction(7): semantics of siginfo_t's si_code member
Apr
2
answered can't connect to dnsmasq on local machine, port is open but connection refused