in reply to error while piping output

It's a TWS job- tivoli work scheduler & it runs it like:

 perl scriptname.perl arg >> log 2>&1

UPDATE: 2&1 is piping stderror to stdout and when i run it locally it does NOT print/throw any error to console (db error), so i am pretty much amazed !! why it fails when run like that

Replies are listed 'Best First'.
Re^2: error while piping output
by Corion (Patriarch) on Mar 10, 2015 at 08:51 UTC

    2&1 does not redirect. Did you mean 2>&1 (note the additional greather-than sign)?