Post a reply

Write your message and submit

Options

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

fdussaussoy
2009-03-24 10:26:28

Hi Volker,

windows planification task service is not capable to launch remote application :
- \\mymachine\ETL\batch\test.bat doesn't work
- W:\test.bat (where W:\ is a mapped directory to \\mymachine\ETL_batch) doesn't work

The machine that is configured to launch talend's job is a remote server (to my internet provider) so I can't access to local directories but I can access to a NAS directory by ftp to publish files.
So I've found this solution :

in the bat file, before the java launcher command line, I execute a XCOPY dos command to synchronise NAS files of my jobs with a local copy of the job...

my .bat file looks like this :

xcopy /E /D /Y "\\filer-1\ifcam\talend\jobs\Test_Lecture_email_tuteur\*.*" "C:\Talend\Jobs\Test_Lecture_email_tuteur\"
java -Xms256M -Xmx1024M -cp C:/Talend/Jobs/Test_Lecture_email_tuteur/lib/javacsv.jar;C:/Talend/Jobs/Test_Lecture_email_tuteur/lib/jtds-1.2.jar;C:/Talend/Jobs/Test_Lecture_email_tuteur/lib/systemRoutines.jar;C:/Talend/Jobs/Test_Lecture_email_tuteur/lib/userRoutines.jar;.;C:/Talend/Jobs/Test_Lecture_email_tuteur/Test_Lecture_email_tuteur/lecture_email_tuteur_local_0_1.jar;C:/Talend/Jobs/Test_Lecture_email_tuteur/lib; test.lecture_email_tuteur_local_0_1.Lecture_email_tuteur_local --context=Default %*

Best Regards
François

Volker Brehm
2009-03-19 10:39:40

Hi François,

yes NET USE has the same effect than subst.

The problem you mentioned still too have is not clear for me? What do you try to achieve? You could start your script via command line  / wrap it into a batch script.

Bye
Volker

fdussaussoy
2009-03-18 13:47:35

Ok thanks.

I found a solution : I mapped a network letter, with NET USE command and launched the .bat file with windows tasks planification.

But I'm still have a problem : impossible to launch the windows task when windows session is closed !

Everybody here save their executable jobs in local directory ?? I'm the only one who want to do that ???

Thanks
François

Volker Brehm
2009-03-11 20:58:31

Hi François,

I searched the internet but found no information about this point. There was a bug in Java 1.2 which prevents usage of UNC in the classpath. But it was closed without comment (and no fix note). So may be it is not possible.

As workaround you could add a subst in front of your bat and release the mapped drive at the end.

Bye
Volker

fdussaussoy
2009-03-11 10:59:54

Hi,

I don't manage to read the context file since I moved the folder of my job

I specified UNC path in the .bat file :

java -Xms256M -Xmx1024M -cp //giforcam-fas02/ifcam_passerelle/dussaussoy/test_etl/lecture_email_tuteur/lib/javacsv.jar;//giforcam-fas02/ifcam_passerelle/dussaussoy/test_etl/lecture_email_tuteur//lib/jtds-1.2.jar;//giforcam-fas02/ifcam_passerelle/dussaussoy/test_etl/lecture_email_tuteur/lib/systemRoutines.jar;//giforcam-fas02/ifcam_passerelle/dussaussoy/test_etl/lecture_email_tuteur/lib/userRoutines.jar;.;//giforcam-fas02/ifcam_passerelle/dussaussoy/test_etl/lecture_email_tuteur/lecture_email_tuteur/lecture_email_tuteur_0_1.jar;//giforcam-fas02/ifcam_passerelle/dussaussoy/test_etl/lecture_email_tuteur/lib; test.lecture_email_tuteur_0_1.Lecture_email_tuteur --context=Default %*

When I map a disk letter in my windows explorer to launch the .bat file, it works. But when i launch it, for example in windows planified task with an UNC path, it doesn't work.

Is the only way to resolve this probleme is to map the program directory with a disk letter ?

Thanks for your help
François (from France)

Board footer

Powered by FluxBB