425 reputation
39
bio website dyfis.net
location Chicago, IL
age
visits member for 4 years, 1 month
seen 17 hours ago

Just this guy, see?


Mar
5
awarded  Nice Question
Feb
4
answered SCP using SSH config?
Dec
4
comment cron: run a process but only if it isnt running?
...this latter style is not only more readable, but also less error-prone: It's easy to unintentionally disrupt the value of $?, for instance by adding log messages or error handling between lines.
Dec
4
comment cron: run a process but only if it isnt running?
...similarly, pgrep myprog; if [ $? -ne 0 ]; then ... would be better written as if ! pgrep myprog; then ...
Dec
4
comment cron: run a process but only if it isnt running?
FYI -- using scalar variables to store argument lists is considered bad practice. See mywiki.wooledge.org/BashFAQ/050 for an example of a case where it fails.
Nov
14
awarded  Yearling
Jun
22
comment Why doesn't '>' redirect error messages from gcc?
...on the last point, compare to: exec 4>secrets; echo "this is a secret" >&4; echo "this is another secret" >&4
Jun
22
comment Why doesn't '>' redirect error messages from gcc?
Two quibbles: (1) Use of unquoted parameter expansions ($FOO) is a common source of bugs, and demonstrating it in examples is not so great. (2) Use of all-uppercase variable names is the primary reason for namespace conflicts between environment and built-in variables (uppercase by convention) and local variables (lowercase by convention). (3) Encouraging people to repeatedly use >> (which reopens the file every time it's used in a command) rather than opening a file once and leaving the file descriptor open for use by multiple commands results in inefficient code.
Jun
22
comment Why doesn't '>' redirect error messages from gcc?
mywiki.wooledge.org/BashFAQ/055 is probably a better introduction to redirection. Also, one really should introduce the POSIX-compliant form (>myFile 2>&1) as well as the bash extension (&>).
Jun
22
comment Why doesn't '>' redirect error messages from gcc?
(related note on tagging: "terminal" is the program [or, decades ago, the hardware] that provides the display you see your shell in; questions about redirection are about the shell itself, not the program you use to interact with that shell).
Jun
22
comment Why doesn't '>' redirect error messages from gcc?
"Why doesn't this work?" is a title that doesn't in any way distinguish this from half of the other questions asked here. Titles should be distinctive and specific to the question. I've tried to edit something decent in myself; please do this when initially asking in the future.
May
6
awarded  Commentator
May
6
comment How could I use ic command in bash?
Software installation isn't really on-topic in StackOverflow; generally, the software's web site or developers would be the folks to ask.
May
6
comment How could I use ic command in bash?
It would help if we knew what that command was, or where it comes from.
Feb
5
comment Are there tools available for trimming PDF margins?
The device is actually a Kindle DX; it does have a built-in PDF reader, and is sufficiently large-format that my documents are fine with their margins trimmed.
Nov
7
awarded  Notable Question
Nov
2
awarded  Nice Answer
Jun
14
comment how to convert line-delimited txt file into a spreadsheet file as tsv or xls
This is a valid single-column CSV file exactly as it is. Also, this question may be better on superuser (since it's not really a programming question, but an "how do I accomplish this task?" question, with shell programming as an assumed answer).
May
11
comment What will happen when I 'cat' 'ksh'?
Not sure that this is a programming question; perhaps superuser would make more sense?
May
9
comment “ls -t remotefile localfile” does not work over FTP
-t is not an available flag to the FTP ls command (which is not the same as just running the shell ls command remotely).