@Anonymous Monk As I mentioned earlier I`ve tried both way in '' and "" and both don`t work.
But for different reasons. Using single quotes like that could never have worked, it would have never done what you are trying to do.
Also, as system documents, using system or die is wrong, you need to use system(@args)==0 or die.
or use autodie qw/ system /; and let autodie take care of the dying.
This means the actual command you're trying to execute is wrong -- I see some backticks which looks like an error to me.
What is the command you're trying to execute? What would it look like if you typed it in on the commandline, no variables, just the final text? Dumper it and see what you're trying to actually execute ( see
Tutorials: Basic debugging checklist for Dumper)
You might have better luck narrowing it down by giving system a list, as in
use autodie qw/ system /; my @args = qw[ ./gbak -user sysdba -password masterkey -BACKUP_DATABAS +E ]; push @args, "localhost:$data$_" , "$tempdir$_.gbk"; use Data::Dumper; print "Trying to system(@args) ", Dumper(\@args ), "\n"; system @args;
See systems for all the caveats, and use autodie, and when something doesn't work right, remember Basic debugging checklist
In reply to Re^2: Firebird databases backup script
by Anonymous Monk
in thread Firebird databases backup script
by Mery84
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |