• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » commandline - pass a list of commands

#1 2010-03-08 17:17:21

lgerako
New member
Registered: 1970-01-01
Posts: 3

commandline - pass a list of commands

Hi,

I've been going through the documentation for running the talend commandline utility:

http://talendforge.org/wiki/doku.php?id=doc:first_steps_with_commandline

The documentation tells me to create something called CommandlineScript to pass to the shell version of the commandline utility.  What the documentation does not state is how to pass the list of commands.  Is there an option for a file argument?

Thanks

Offline

#2 2010-03-09 11:22:42

nfrancisco
Member
Registered: 2008-04-08
Posts: 27

Re: commandline - pass a list of commands

if <CommandLineWindows> equals TISEE-win32-x86.exe -nosplash -application org.talend.commandline.CommandLine -consoleLog -data commandline-workspace

then you can put all the commands in a file and then just run:

<CommandLineWindows> scriptFile "your_file"

You can create this file called "ExportJobScript.txt" with the following:

initRemote http://localhost:8080/org.talend.administrator323
logonProject -pn FORMATIONTIS -ul nfrancisco@talend.com -up MyPassword
exportJob TouchFile -dd "/home/nfrancisco/Bureau/ExportJobScript_Commandline/" -jv 3.2 -jc Default -af "exportjobscript"

Then a script like this to execute the commands above:

#!/bin/sh
cd /home/nfrancisco/Talend/Logiciels/TDQ/3.2.3/Install/Commandline
./TalendDataQuality-linux-gtk-x86 -nosplash -application org.talend.commandline.CommandLine -consoleLog -data commandline-workspace scriptFile "/home/nfrancisco/Talend/Formations/FormationTIS/AdminTeam/commanline_solution/ExportJobScript.txt"

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » commandline - pass a list of commands

Board footer

Powered by FluxBB