Reputation
21,311
Next tag badge:
95/100 score
27/20 answers
Badges
2 25 73
Newest
 Nice Answer
Impact
~1.6m people reached

  • 0 posts edited
  • 6 helpful flags
  • 1,944 votes cast
May
22
comment SCO 5.0.7 ftp stopped responding to external WAN requests
Check the cabling. Try known-good cables, ensure they're seated. Also, is there any SCO Unix way to do "mii-tool" or "ethtool" on the interface? Under linux, those two can show you the actual physical configuration, not what you think it is, or what some other software thinks it is.
May
22
comment Why is sudo slow when I mistype my password?
@jordanm - thank you! That's exactly what I'm looking for to penalize the Chinese ssh password guessers.
May
22
comment How can I end a here-document that starts with <<\\$fff?
@G-Man - much obliged for the thorough and well-thought-out answer to what I had assumed was a rhetorical question. Sometimes rhetorical questions have answers, I reckon.
May
21
comment How can I end a here-document that starts with <<\\$fff?
Pedagogically, why would you put a question like that on a test? It's a corner case at best, probably a worst practice, and easily and habitually avoided by every "here document" writer ever. Sometimes you've gotta wonder about academics...
May
21
comment What does this grep expression mean?
We need to see the exact command you invoke. As it stands, the backslashes might be to protect '*' and '?' from shell expansion, or to keep grep from treating them as metacharacters.
May
20
comment I keep getting error: PHP Startup - libphp5.so missing? PHP seems to run fine with Apache
@PancakeMaker - last things I can think of is to look in /var/log/httpd/error_log when you run the PHP script from the web. You may also want to go into /etc/php/php.ini and turn up error reporting: "error_reporting = E_ALL" and "display_errors = On" and "display_startup_errors = On". That might give you some extra info to go on. Also: now that you're getting a different error, open a new question, complete with version numbers for all the packages involved, and the smallest piece of PHP that triggers the problem.
May
20
comment I keep getting error: PHP Startup - libphp5.so missing? PHP seems to run fine with Apache
@PancakeMaker - my mistake. It's the "apache" package. Try un-installing and re-installing "apache". pacman -Q apache tells me "apache 2.4.12-4"
May
20
comment delete lines of a file from a file
@aroraa - I don't think so. sed has a different idea of how lines are numbered, because it never "backs up", and it has a sequence of input lines. The sed -f solution is probably the best - less work than mine.
May
20
comment I keep getting error: PHP Startup - libphp5.so missing? PHP seems to run fine with Apache
@PancakeMaker - do nm -D /usr/bin/httpd | grep ap_server_root to see if the Apache executable even has that symbol defined in it. Also, is package "httpd" up to date? pacman -S httpd should show you.
May
20
comment Output of wc | awk is different in shell script than from cli
There's something going on that you haven't written down. You have a string "somprocess". What's that string in the real script? What's your interactive shell? What version is /bin/bash and your interactive shell? For instance pgrep awk | wc | awk '{print $1}' says 0 for interactive zsh, but 1 for bash and dash.
May
19
comment Is it possible to make an exec call that “returns”?
Apparently it's possible to change a parent process's environment: stackoverflow.com/questions/205064/… But that seems terribly hacky.
May
19
comment I keep getting error: PHP Startup - libphp5.so missing? PHP seems to run fine with Apache
@PancakeMaker - ap_server_root is a .BSS segment symbol (C language global variable) in httpd: nm -D /usr/bin/httpd| grep ap_server_root Are you certain you have a good installation of Apache? Is the ServerRoot value set in /etc/httpd/conf/httpd.conf, and is it correct?
May
18
comment directory structure vs file system
@MaxNanasy - given that two meanings of "file system" are in common use (1. The names and arrangement of directories in a tree structure, and 2. The on-disk format and layout of file and directory structured data, along with the code to maintain and use it), it's pretty hard to come up with a term that's both comprehensible, not defined in a circular fashion, and technically correct. I chose to go with comprehensible and used "partition" instead of other terms. I invite you to suggest term(s) that are more correct, I'm at a loss.
May
15
comment Is it possible to uniquely identify dynamically imported functions by their name?
I don't know for sure, so I'm not going to 'answer" your questions. I'm rooting for "yes it is safe to assume that" and "yes, the dynamic linker would resolve all those symbols to the same function". But not an answer!
May
15
comment Is there something like “common Linux commands”?
Very similar to unix.stackexchange.com/questions/3380/… which didn't get great answers.
May
14
comment How to make my server use the hosts file to resolve names?
I use dnsmasq for almost exactly this situation. I found that dnsmasq configuration wasn't particularly easy, so maybe you should pick this as THE answer, then try to get dnsmasq to do what you want, asking questions about dnsmasq instead.
May
7
comment Are files defined by their content blocks, inodes, both, or filenames?
@Tim - yes, all special files have inodes. That's how ls can show you /dev/sda1 or /tmp/.X11-unix/X0. If you do man 2 stat you can see the st_mode field of struct stat, and the C-language macros to decide what files types. An inode (on-disk data) example is in /usr/include/ext2fs/ext2_fs.h on my machine. struct ext2_inode has an i_mode member that has a particular bit set for each of the special file types.
May
7
comment Are files defined by their content blocks, inodes, both, or filenames?
@Tim - the not-regular-files don't really have data blocks. Maybe named pipes do, but the not-regular-files all need the kernel to do a lot more on each read or write. Unix-domain sockets need to have a user process on the other end. Device files reference a whole disk, or a disk partition. You can think of them as either "all of the data blocks" or "don't really have data blocks". It doesn't really make sense to think of "data blocks" in the context of not-regular-files.
May
5
comment Awstats reports “Search Keyphrase and Search Keywords fields” as empty
Cross posting is frowned upon, no? This exact question is not only posted to askubunto.stackexchange.com but also to something called "nerdanswer" (nerdanswer.com/answer.php?q=951783)
May
1
comment Fully MS-compatible office
If you really need "Office" and it's limitations I mean features, you should just run Windows and buy Office. It's honestly not worth asking for complete compatibility with software as complex and as unspecified as Word and Excel and Powerpoint.