1

Let's say I have the following script: script.sh and i want the verbose output in a logfile and simple output on screen.

Logfile should contain the csh -v script.sh output, and on the screen should be only the script.sh output.

I prefer using piped tee.

5
  • It works for ksh as the debug messages are redirected to STDERR, but it doesn't work for csh Commented Sep 9, 2014 at 7:34
  • 2>filename # Redirect stderr to file "filename." Are you sure? Commented Sep 9, 2014 at 7:34
  • Yes , I am damn sure it does. Commented Sep 9, 2014 at 7:54
  • I reversed my vote here because I'm not sure I know what's going on. I think I'd rather see a copy of your script. Commented Sep 9, 2014 at 8:36
  • This definitely confirms @g4ur4v's assertion. And makes me glad I never had to use the cshell. Please accept my apology - apparently I did not... the google... Commented Sep 9, 2014 at 8:51

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.