Five Stars

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..
4 REPLIES
Twelve Stars

Re: Help needed to execute a command in Linux using tSystem component

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
-----------
Five Stars

Re: Help needed to execute a command in Linux using tSystem component

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
Six Stars

Re: Help needed to execute a command in Linux using tSystem component

The jobserver is running as a non-root user and does not have permission to execute the binary. 
Five Stars

Re: Help needed to execute a command in Linux using tSystem component

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