|
12/25 |
2000/2/4-5 [Computer/SW/Languages/Perl] UID:17428 Activity:moderate |
2/3 For people who know Perl intimately: Does anyone know why system("echo hello world |& tee hello.log 2>&1"); does not work? \_ Not perl, sh: you meant "echo hello world 2>&1 | tee hello.log". \_ Use perl's internal pipe mechanism, it'll work faster. \_ the problem is you dont understand that the 'system' function invokes its argument with /bin/sh, not csh. -ERic \_ That's not even csh, it's some strange hybrid \_ It's /bin/msh. Don't recognize it? |