How to use commandline in script mode when it is already started as a service

Four Stars

How to use commandline in script mode when it is already started as a service

Hello,

 

In Talend MDM 6.2.1, I am trying to use the commandline in "script mode" (refer to https://help.talend.com/reader/uwwCVAHxWDS6l5fZQ~lVYA/5dj5F4G1MynhrY8~yYALuA), while the commandline is already started in "Server Mode". 

Basically, I managed to deploy a job in Nexus using command line in Server Mode (I connect with Telnet localhost 8002), with the following commands:

initRemote http://localhost:8080/tac -ul "myuser" -up "mypwd"
logonProject -pn MyProject -ul "myuser" -up "mypwd"
publishJob 'MyJob' -v '0.1' -pv '0.1.0' -g 'MyJobGroup' -a 'MyJob' -s -r 'http://mytacServer:8081/nexus/content/repositories/snapshots' -u "MyNexusUser" -p "MyNexusPwd" -t 'standalone' -jc 'Default'
logoffProject

 But when I try to execute the same commands in script mode (I provide a specific workspace to avoid problems with the workspace used by server mode), I get many errors and it even makes my TAC restart for some unknown reasons.

So my question is : Is it possible to launch the commandline in script mode while it is already started in server mode? If not, is it possible the execute a script (not only one command) with the commandline in server mode?

 

Thanks for any help

Moderator

Re: How to use commandline in script mode when it is already started as a service

Hello,

Have you tried to stop the server and then use the commandline in "script mode" to see if it is OK with you?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: How to use commandline in script mode when it is already started as a service

Hi @Arnaud_Verbeke,

basicly im faceing the same question and I woudl like to ask if you were able to manage your issue.
to executing an Talend commandLine Script-file in Server mode.

 

EDIT: this was already discussed in Januar 2011 --> https://www.talendforge.org/forum/viewtopic.php?id=13675

but I suppose its not possible since now

Thanks a lot
Madse

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.