First time playing around with forks and pipes. Basically say if i have someone input a command "command1 P command2 | command3". In this case, the key value P will direct the standard error of command1 to standard in of command2 and standard output of command1 directed to the pipe '|' after command2. I know i will need to create a new pipe, fork it and get the input from parent thru fd 2 somehow. Thanks.