@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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.