Five Stars

execute a power shell script via tSystem component in hidden mode

how to execute a power shell script the tsystem component  in hidden window mode

3 REPLIES
Employee

Re: execute a power shell script via tSystem component in hidden mode

I have not tried it, but maybe you should read on linux about it. Check https://stackoverflow.com/questions/9190151/how-to-run-a-shell-script-in-the-background-and-get-no-o...

Talend just call the system command, so there is nothing specific in Talend to do.

Five Stars

Re: execute a power shell script via tSystem component in hidden mode

Thanks @iburtally Here is how i did it

 

cmd /c start powershell -nologo  -noninteractive -command filter.ps1

Six Stars

Re: execute a power shell script via tSystem component in hidden mode

Hi,
Can you please guide me on the issue.
I need to upload a file to a site. I am using ySystem component to run the powershell.
I get escape character error. I am not able to resolve it.

"cmd /c start powershell -noninteractive C:\\Curl_windows\\src\\curl.exe -H 'X-API-TOKEN:ZLQuFZWY5zekZd' -F 'surveyId=SV_8dpoD2nJ3' -F 'file=@C:\\Logs\\surveyresponseimport.csv;type=text/csv' 'https:\/\/xxx.com\/API\/v3\/responseimports'"

Where am i going wrong?