Ctmcreate and domail messages with multi-line

Several scripts
Post Reply
User avatar
Mikegyver
Nouveau
Nouveau
Posts: 1
Joined: 23 Jul 2009 12:00

Ctmcreate and domail messages with multi-line

Post by Mikegyver » 24 Jul 2009 10:25

Hello,

I'm using ctmcreate to generate jobs which will send emails. For email messages I want to have a multi-line text.

I can do it with CTM Agent on Linux but not on Windows.

LINUX
ctmcreate.exe
-tasktype command
-group "g01"
-application "app01"
. . .
-jobname "job01"
-on "*" "*"
-domail "m01@m.com" "m02@m.com" "R" "My Linux subject" "In Linux
I can just
insert a line break
on the linux shell"


WINDOWS
ctmcreate.exe ^
-tasktype command ^
-group "g02" ^
-application "app02" ^
. . .
-jobname "job02" ^
-on "*" "*" ^
-domail "m01@m.com" "m02@m.com" "R" "My Windows subject" "In Windows
The command line shell
can't interpret multi-line"


With the Windows version, ctmcreate only takes the first line from the message text (ignoring all others).
Is there any other way of creating a multi-line message?

Thanks

User avatar
rahulsehgal
Nouveau
Nouveau
Posts: 148
Joined: 19 Mar 2009 12:00
Location: Delhi
Contact:

Post by rahulsehgal » 24 Jul 2009 12:39

Hi Mike,

You can use Input file parameter in windows

ctmcreate -input_file <fullPathFileName>

in file you can write all the command parameters that you want to execute.

regards,

User avatar
th_alejandro
Nouveau
Nouveau
Posts: 188
Joined: 26 Nov 2008 12:00
Location: Bogotá

try this.

Post by th_alejandro » 24 Jul 2009 10:54

Create a .txt file with the parameters for ctmcreate. Run ctmcreate using as input the .txt file.

Post Reply