
Anonymous
Not applicable
2014-09-18
12:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
[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
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.
"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
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.
332 Views
1 Solution
Accepted Solutions

Anonymous
Not applicable
2014-09-18
04:38 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
this is a comman 'error' : use '/' in place of '\'. it should works
regards
laurent
this is a comman 'error' : use '/' in place of '\'. it should works
regards
laurent
332 Views
3 Replies

Anonymous
Not applicable
2014-09-18
04:38 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
this is a comman 'error' : use '/' in place of '\'. it should works
regards
laurent
this is a comman 'error' : use '/' in place of '\'. it should works
regards
laurent
333 Views

Anonymous
Not applicable
2014-09-18
04:56 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You need to use the escape char \ for your directory.
Best regards
Sabrina
You need to use the escape char \ for your directory.
Best regards
Sabrina
332 Views

Anonymous
Not applicable
2014-09-18
01:20 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you all. Its resolved
332 Views
