[GENERAL] error codes when running pg_dumpall from a perl script.

2001-10-15 Thread Simon Crute
Hi, If this was better posed in a different postgres group, please let me know. I'm having problems when running pg_dumpall from a perl script. Here's the line that's executing the backup. `pg_dumpall -o |bzip2 -z -c > $os_bkup_loc/byt_pgdump_full.bz2` or warn "Error while running probably

Re: [GENERAL] error codes when running pg_dumpall from a perl script.

2001-10-12 Thread Simon Crute
"Allan Engelhardt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You'll want to ask on the perl groups, but briefly you get an illegal seek when your command writes to the error file descriptor: > > % perl -e '`echo hi 1>&2` or warn "Oops: $! $?";' > h

Re: [GENERAL] error codes when running pg_dumpall from a perl script.

2001-10-12 Thread Allan Engelhardt
You'll want to ask on the perl groups, but briefly you get an illegal seek when your command writes to the error file descriptor: % perl -e '`echo hi 1>&2` or warn "Oops: $! $?";' hi Oops: Illegal seek 0 at -e line 1. It's a perl feature, not a bug ;-) Try % man perlop for se