You are not logged in.
On the shell, We point to the directory within which the shell script is present and invoke it by ./script.sh
what else do we need to type in other than that? the exact problem here is that our scheduler for other jobs also invokes the same script like we are manually doing, but it does in a scheduled way through the application. the same thing when we are trying to invoke manually from command line has been failing. that is the discrepancy which we are not able to understand exactly. do you have any clue why this could be happening?
The JobName_run.sh file is in the same directory with the lib directory.
Maybe you'd better type absolute path in your sh file.
We are trying to invoke the same script generated along with the export, but it has been throwing exceptions (mentioned in the post). The same script when scheduled as a cron job works fine. Have checked for all the permissions and they're fine..Any pointers ?
When you export one job from TOS, you will find JobName_run.sh in the export zip file.
There is no need to create it by yourself.
The shell script invokes the .jar files of talendjob.The job has mulitple subjobs, each of which has a .jar file associated with it , and the error mentioned is thrown by the first subjob.
You mean you type a shell script by yourself to run the job?
I've been trying to trigger the talend job through shell script , which calls all jar files associated with the project .But i get the following error when i try to execute the shell script :
sh-3.2$ Exception in component tJavaRow_3
+ Done(1) ./script.sh
The same when i'm trying to run through a scheduled application as a cron job , it is running fine . Are there any permission issues or something else which i need to set for it to run.I've tried running it on multiple servers and i'm getting the same error.I want to run it manually through the script as i need to test it on different servers and cannot install the application on each.