Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Execute windows command using tSystem component

I am trying to execute a db backup command through tSystem component. I need to pass multiple options to the command as below:
"pg_dump -h 100.1.1.2 -p 5432 -U tstusr -w -Fc -b -v -n xxx -f C:\db_bkp\xxx.bkp tstdb"
Some of the above values are passed through context variables. Hence, in tSystem component I have selected option 'Use Array Command' and provided the values as in below image
0683p000009MAp2.png
However, I get an error message stating: "Error in the component's properties:Invalid escape sequence (valid ones are  \b  \t  \n  \f  \r  \"  \'  \\ )"
Could some one point out where I am going wrong?
Thanks in advance.
Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

hi,
this is a comman 'error' : use '/' in place of '\'. it should works
regards
laurent

View solution in original post

3 Replies
Anonymous
Not applicable
Author

hi,
this is a comman 'error' : use '/' in place of '\'. it should works
regards
laurent
Anonymous
Not applicable
Author

Hi,
You need to use the escape char \ for your directory.
Best regards
Sabrina
Anonymous
Not applicable
Author

Thank you all. Its resolved