> > ,---- > > | $ cd ~/bin 2>&1 | tee -a output.log; pwd > > | /home/stefan > > `---- > > > > How come and how can I get this to work? > > Sorry, but I am not sure quite what you are trying to achieve. Maybe I > am missing the point!
I want to change the working directory and if there is an error (e.g. the directory doesn't exist) I want that to be logged to a file and printed on stdout. With the above command that doesn't work since the working directory is the same as before execution of the command. Stefan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]