Issue with Run Script interpreter

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Issue with Run Script interpreter

c.monty
Hi,

I want this command to be executed:
su tstadm -c \"/usr/sap/TST/HDB00/exe/hdbsql -t -U BKPOPERATOR 'BACKUP DATA INCREMENTAL USING FILE
('/usr/sap/TST/HDB00/backup/data/backup-incr-TST-bareos-schedule');'\"

When I define a related Run Script
ClientRunBeforeJob = "su tstadm -c \"/usr/sap/TST/HDB00/exe/hdbsql -t -U BKPOPERATOR 'BACKUP DATA
INCREMENTAL USING FILE ('/usr/sap/TST/HDB00/backup/data/backup-incr-TST-bareos-schedule');'\""
this is interpreted incorrectly.

In the output below you can see that the command
BACKUP DATA INCREMENTAL USING FILE
(/usr/sap/TST/HDB00/backup/data/backup-incr-TST-bareos-schedule);
don't includes ' and therefore returns an error.
This command is not working w/o '.

05-Jan 13:34 ld2079-fd JobId 198: shell command: run ClientBeforeJob "su tstadm -c
"/usr/sap/TST/HDB00/exe/hdbsql -t -U BKPOPERATOR 'BACKUP DATA INCREMENTAL USING FILE
('/usr/sap/TST/HDB00/backup/data/backup-incr-TST-bareos-schedule');'""
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob:
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: Username : ""
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: SID : ""
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: Instance : "-1"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: server : ""
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: database : ""
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: xuserkey : "BKPOPERATOR"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: nullvalue : "?"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: fieldsep : "NULL"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: cmdsep : ";"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: CMDTrace : "FALSE"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: autocommit: "TRUE"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: noHeader : "FALSE"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: useDBS : "TRUE"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: batch : "FALSE"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: rollbOnErr: "FALSE"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: Command : "BACKUP DATA INCREMENTAL USING FILE
(/usr/sap/TST/HDB00/backup/data/backup-incr-TST-bareos-schedule);"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: * 257: sql syntax error: incorrect syntax near
"/": line 1 col 37 (at pos 37) SQLSTATE: HY000

What must be changed in order to get command
BACKUP DATA INCREMENTAL USING FILE
('/usr/sap/TST/HDB00/backup/data/backup-incr-TST-bareos-schedule');
correctly?

THX

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users