divert output

i want to run a ksh script 'myscript' at the background and direct the system to return any error msg to /tmp/myscript.err and the output of 'myscript' to /tmp/myscript.out
how do i do that at the command prompt? thank you.

Hi kanang,

Try with this in ksh

$yourscript.sh 2>tmp/myscript.err >tmp/myscript.out &

hi krishna,

thanks for your reply. it works that way.

ok, fine