Close
As written, you're passing "tail" and "+3" as arguments to "who". What you need instead is to run "who" by itself, and redirect its output to the input of "tail". In Linux there are two types of I/O redirection, ">" and ">>" redirects output to a file, which you have done correctly, while "|" redirects output to the input of another process. You need to stick a "|" between "who" and "tail" so that the "tail" program can process the output of "who", rather than passing the literal string "tail" as an argument to "who".
Last edited by suicidaleggroll; 12-01-2016 at 04:06 PM.
|