Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Gabri11
Contributor
Contributor

start job on linux server

Hi everyone. I would need to schedule a job on another server. I explain better ... I work with DI on a windows client and I would like to move jobs to a linux server where jobs will be scheduled via crontab. In your opinion, is it possible?
thank you

Labels (2)
1 Solution

Accepted Solutions
vapukov
Creator III
Creator III

Right click mouse on Job in repository view, click Build Job.

transfer the result zip file to the target server, unzip it

change directory (same with Job name) - and run - chmod u+x *.sh

 

then you will find file JobName_run.sh (JobName - it is your Job name) - you can schedule it as any Linux task

that's all

View solution in original post

7 Replies
vapukov
Creator III
Creator III

Right click mouse on Job in repository view, click Build Job.

transfer the result zip file to the target server, unzip it

change directory (same with Job name) - and run - chmod u+x *.sh

 

then you will find file JobName_run.sh (JobName - it is your Job name) - you can schedule it as any Linux task

that's all

Gabri11
Contributor
Contributor
Author

I tried but it works only if I run the * .sh file with the bash command and not chmod u + x.
Can you tell me if it's still correct or the difference between the two commands?
Thank you

vapukov
Creator III
Creator III

Hi,

 

not 100% understood you

 

chmod u+x *.sh - it command make sh file executable 

 

JobName_run.sh - execute (start) your job, but first it must be marked as executable

Gabri11
Contributor
Contributor
Author

OK thank you very much.

sunitha
Contributor
Contributor

I followed steps said above, still getting error
"could not find or load main class"

Can u able to help
vapukov
Creator III
Creator III

Hi,

 

did you use exactly the same version of Java on Studio and runtime machines?

 

sunitha
Contributor
Contributor

Yes, even i am trying to execute the jobs in the same server (i.e the place where we created the jobs in talend studio) but through console.