Quote:
Originally Posted by ash997
user1 is the user
aslo what is the command I put in the beginning?
would it look like this Mkdir /home/user1 >/tmp/text 2>&1
|
Why do you want to pipe the output to /tmp?
You can pipe things anywhere you want.
But yes, thats how to do it, except..
Code:
command 2>&1 | tee /folder/folder/filename
Anyways, if you need more info, have a look into "how to pipe output" and "stdout" & "stderr". You can do it many different ways, the above is just my generally preferred method, as I can also see the output, not just redirect the pipe. You are specifically looking for stderr.