From 72c87010a785563bb839ade80cbdaa9d37c85c94 Mon Sep 17 00:00:00 2001 From: linuxpoet Date: Sat, 7 Apr 2007 03:54:50 +0000 Subject: changed from backtick to qx git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1037 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/AM.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LedgerSMB/AM.pm b/LedgerSMB/AM.pm index d6d66984..cb7d4ee7 100755 --- a/LedgerSMB/AM.pm +++ b/LedgerSMB/AM.pm @@ -1623,7 +1623,7 @@ sub backup { my $suffix = ""; if ($form->{media} eq 'email') { - print OUT `PGPASSWD="$globalDBPassword" pg_dump -U $globalDBUserName -h $globalDBhost -Fc -p $globalDBport $globalDBname`; + print OUT qx(PGPASSWD="$globalDBPassword" pg_dump -U $globalDBUserName -h $globalDBhost -Fc -p $globalDBport $globalDBname); close OUT; use LedgerSMB::Mailer; $mail = new Mailer; @@ -1650,7 +1650,7 @@ sub backup { print OUT qq|Content-Type: application/file;\n| . qq|Content-Disposition: attachment; filename="$myconfig->{dbname}-$form->{dbversion}-$t[5]$t[4]$t[3].sql$suffix"\n\n|; - print OUT `PGPASSWD="$globalDBPassword" pg_dump -U $globalDBUserName -h $globalDBhost -Fc -p $globalDBport $globalDBname`; + print OUT qx(PGPASSWD="$globalDBPassword" pg_dump -U $globalDBUserName -h $globalDBhost -Fc -p $globalDBport $globalDBname); } unlink "$tmpfile"; -- cgit v1.2.3