• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] tSytem syntax issue?

#1 2008-04-17 20:02:41

strpdsnk
Member
Registered: 2008-03-25
Posts: 328

[resolved] tSytem syntax issue?

the command that shows up originally in a new instance of tSystem will run for me.  the problem is when i try and put anything different as the command string

command: "cmd /c echo HELLO"

Starting job Launch at 14:02 17/04/2008.
HELLO
Job Launch ended at 14:02 17/04/2008. [exit code=0]

command: "cmd /c D:\odyssey\TalendJobs\test.bat"

Starting job Launch at 13:59 17/04/2008.
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
    Invalid escape sequence (valid ones are  \b  \t  \n  \f  \r  \"  \'  \\ )

    at notifications.launch.Launch.tSystem_1Process(Launch.java:132)
    at notifications.launch.Launch.runJobInTOS(Launch.java:310)
    at notifications.launch.Launch.main(Launch.java:228)
Job Launch ended at 13:59 17/04/2008. [exit code=1]

I'm not sure what I'm doing wrong here.  Am I messing up the syntax?


Uploaded Images

Offline

#2 2008-04-17 20:13:38

cahsohtoa
Member
Company: AEFE
Registered: 2008-02-19
Posts: 261
Website

Re: [resolved] tSytem syntax issue?

you have to write : cmd /c D:\\odyssey\\TalendJobs\\test.bat
because you need to use the escape char \
cheers

Offline

#3 2008-04-17 20:16:28

strpdsnk
Member
Registered: 2008-03-25
Posts: 328

Re: [resolved] tSytem syntax issue?

ahhhh

is there any documentation on syntax that you could direct me to?

Offline

#4 2008-04-17 21:23:01

Volker Brehm
Member
Registered: 2007-04-03
Posts: 1139
Website

Re: [resolved] tSytem syntax issue?

Hi,

simple rule ;-)
Because java code is generated. You have to be conform with the java syntax.

Bye
Volker

Last edited by Volker Brehm (2008-04-17 21:23:21)

Offline

#5 2008-04-17 21:24:27

strpdsnk
Member
Registered: 2008-03-25
Posts: 328

Re: [resolved] tSytem syntax issue?

Oh yes, I understand that.  I just don't know java.  So what I'm looking for is a guide to java syntax, if anyone knows one (especially one for people not familiar with java).

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] tSytem syntax issue?

Board footer

Powered by FluxBB