1.

Solve : sending output to /dev/null?

Answer»

I write script in ksh and am trying to do something we do regularly, that is send the out put of a command to null, i.e. we use 2>/dev/null in unix. Is there something like this that can be used in a .bat file. I am using cacls on a directory and it SENDS all kinds of output to the dos WINDOW, I WANT to GET rid of that.

Thanks!Pretty much the same in the Windows world.

cacls 2>nul

Use 1 to REDIRECT STDOUT
Use 2 to redirect STDERROR

Hope this helps. 8-)So obvious!! Thanks!



Discussion

No Comment Found