66,291 reputation
864147
bio website
location European Union
age
visits member for 1 years, 8 months
seen 3 hours ago

Mar
13
comment How come crontab -e is different from less /etc/crontab?
You should specify which cron implementation and which version thereof on which OS and which version thereof you're quoting that from. cron is something that varies a lot from OS to OS and on some you can choose between several implementations.
Mar
13
revised How come crontab -e is different from less /etc/crontab?
the location of the user crontabs, or whether they are file at all varies from system to system and cron implementation to cron implementation. Users don't need to know that.
Mar
13
comment What's the difference between “==” and “=~”?
(and beware that means substring match. The b regular expression is matched in abc, so [[ abc =~ b ]] is true, while for the fnmatch pattern matching operator ([[ abc == b ]]), it's not. The equivalent of [[ abc =~ b ]] is [[ abc == *b* ]]).
Mar
13
comment How can I force a script to use more resources?
Rather than echo ... | tr, use printf '%s\n' ....
Mar
13
comment How can I force a script to use more resources?
In the first one, you stop at the first match. So you should have used a password like mmmmm instead of abcde for one that is more representative of the average time. For the second one, use -m1 (if GNU grep) to stop at the first match if you're not interested in the other ones.
Mar
13
comment How can I force a script to use more resources?
Why the echo ... | while read where you could have done for i in ...?
Mar
13
comment Good ways for annotating and searching in document (pdf, djvu)
okular can annotate and read pdf/djvu as well.
Mar
13
comment Why does this executable still execute after I deleted it?
The program runs in memory, but not all of it may be in memory the system still relies on the file being on the disk (it is mmapped from there in memory), it's more that the file is not fully deleted while there's still a process with a file descriptor open on it (only the directory entry is removed preventing other processes to open it).
Mar
13
revised Replace instance of process in place?
added 431 characters in body
Mar
13
awarded  Nice Answer
Mar
12
comment How to show time away from computer?
There's also xssstate -i from suckless.org
Mar
12
comment Replace instance of process in place?
@MichaelMartinez, killall Program-A is run after Program-A1 has finished. And Program-A won't handle SIGTERM until it's resumed.
Mar
12
comment Is the shell permitted to optimize out useless terminating commands?
@SteveSchnepp, cat is a builtin in mksh, but that builtin resorts to the system's cat if passed any option, which is why with GNU cat, mksh -c 'cat /dev/null --help' doesn't yield the same result as bash -c 'cat /dev/null --help', but mksh -c 'cat --help /dev/null' does give you the same as bash -c 'cat --help /dev/null' (as mksh cat builtin parses options the POSIX way, while GNU cat parses them the GNU way).
Mar
12
comment How to show time away from computer?
The xprintidle command gives you the idle time in milliseconds for the corresponding display
Mar
12
comment How can I force a script to use more resources?
@yzT, one invocation of openssl can process as many passwords as you want if you use -stdin (and newline is not part of your charset).
Mar
12
comment Are there “esoteric” (weird) but standards-compliant C compilers or runtimes?
posh on Debian does that to some extent for sh (though for the debian policy, not POSIX, though the debian policy is mostly based on POSIX).
Mar
12
revised Why can't I use renice to increase a process' nice value?
typos
Mar
12
answered Why can't I use renice to increase a process' nice value?
Mar
12
revised get arguments passed and put it in an array
added 425 characters in body
Mar
12
revised How to listen to a specific port and return 200 status
added 23 characters in body