Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
11
Impact
~19k people reached

  • 0 posts edited
  • 2 helpful flags
  • 148 votes cast
Mar
27
awarded  Popular Question
Feb
18
comment Shell Script for logging into a ssh server
Related: pass password to su/sudo/ssh
Feb
12
comment Follow a pipe using less?
@mik Looks like an error in release notes for version 471 then. Thanks, fixed.
Feb
12
revised Follow a pipe using less?
edited body
Feb
12
comment How to get the complete and exact list of mounted filesystems in Linux?
Nonetheless many distributions are moving towards making /etc/mtab a symlink to /proc/mounts. Good to hear – adding this information to answer would make it even better. Do you think tracking requested options by the kernel would be feasible and beneficial?
Feb
12
comment How to get the complete and exact list of mounted filesystems in Linux?
What's the point of mount maintaining /etc/mtab if it can't be relied upon? Wouldn't it be better if mount presented information from /proc/mounts instead?
Feb
11
comment /usr/bin vs /usr/local/bin on Linux
There are fewer places nowadays, since /bin was merged with /usr/bin and /sbin was merged with /usr/sbin – see The Case for the /usr Merge.
Feb
3
comment How do I make python programs behave like proper unix tools?
sys.stdin should be used instead as it's more portable than hardcoded path to file.
Feb
1
comment Why is SIGINT not propagated to childs process when sent to it's parent process?
The shell has gotten out of the way. +1
Jan
29
comment Follow a pipe using less?
Related: continuous reading from named pipe (cat or tail -f)
Jan
29
comment Follow a pipe using less?
This command behaves differently when used with pipe as described by @mik and is clearly not what OP is looking for.
Jan
29
comment Is it possible to make seek() operations on a named pipe return successful?
Btw, would having seekable pipe be necessary for less to be able to follow pipe the same way it can follow file? I'm asking in the context of Follow a pipe using less? question (you might prefer to answer there).
Jan
29
answered Follow a pipe using less?
Jan
29
comment less '+>' /path/to/file
From what I see it also fails if the last occurrence is on the next to the last line. I have version 458 of less.
Jan
29
comment less '+>' /path/to/file
Actually less $'+>?foo\r' /path/to/file does not go to the last occurrence of foo if foo is present on the last screen because (according to man less) The search starts at the line immediately before the top line displayed. Btw, what's the purpose of $ here?
Dec
11
awarded  Critic
Dec
11
comment Follow a pipe using less?
If the input is a pipe, less hangs until the pipe is closed on the other side. That's kind of misleading statement. What happens is that less calls read in a blocking mode, waiting for new data or or pipe's closure.
Dec
11
comment Follow a pipe using less?
Being seekable is totally irrelevant to following input stream.
Dec
9
comment Redirect both stderr and stdout to /dev/null with /bin/sh
@StéphaneChazelas Thanks for info. As this is unlikely to be used like that it seems somehow sensible that bash re-purposed this notation for special redirection. If, however >& was not specified in POSIX then it would make more sense for bash to choose this notation instead and be POSIX compliant. Do you see any way out of this mess?
Dec
9
comment Redirect both stderr and stdout to /dev/null with /bin/sh
@StéphaneChazelas (...) which means something completely different You left me wondering what it means in this case...:)