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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Sanjay5
Contributor III
Contributor III

Help needed to execute a command in Linux using tSystem component

Hi,
I have installed a program in Linux which i am trying to execute using tSystem.
If I login to Linux server, I am able to execute the command
   Command executed in Linux:           vsdata --view-central-config
   Result: I get proper response 
Now, I am trying to execute the same command using tSystem, It gives me the error. (See below screen shot)
Error:
Cannot run program "vsdata": error=2, No such file or directory
0|20170323162428_1LwWq|20170323162428_1LwWq|20170323162428_1LwWq|tSystem|end job||20170323162428.880-0700
Exception in component tSystem_11
java.io.IOException: Cannot run program "vsdata": error=2, No such file or directory

Need help on what could be the reason..
0683p000009MDo5.png 0683p000009MDoA.png 0683p000009MD3Q.png
Labels (3)
4 Replies
vapukov
Master II
Master II

short answer - tSystem not pass PATH environment from OS to new session
You can add full path for running command - /opt/xxx/vsdata (as example)
At the moment I not remember how to by-pass this problem, something with user profiles, but I not expert in this part
Sanjay5
Contributor III
Contributor III
Author

Thanks for the reply,
I tried to execute the same command using directory path as below:
Command: /amex/voltage_cmdline/bin vsdata --view-central-config
Result: : filecomponenttesting.tsystem_0_1.tSystem - tSystem_11 Cannot run program "/amex/voltage_cmdline/bin": error=13, Permission denied
Program is installed at root level. What could be causing the permission error?

Thanks
Sanjay
0683p000009MDoF.png
Anonymous
Not applicable

The jobserver is running as a non-root user and does not have permission to execute the binary. 
Sanjay5
Contributor III
Contributor III
Author

Thanks jholman,
Can you let me know, how can i resolve the issue.
What changes would be needed?
If i go to jobserver, I can execute the same command with my user id as well as with talenduser.
Regards,
Sanjay