Using Skill Expressions/Skill Variables in a Unix Command

Guest
Hi,

How do I use Skill Variables / Skill Expressions in a Unix Command ??

In my skill code I m trying to execute mailx command by using system
command. I want to get the Inputs such as the Subject of the mail, cc
list and the user id from a form. I tried passing the form field
inputs to the system(mailx ....) command in the below 2 ways.

1) The Below syntax fails as the arguments to the mailx are skill
expressions.
system("mailx -s formName->subFieldName->value -c formName-
cclistFieldName->value formName->mailidFieldName->value < file_path")
2) I tried assigning the form field values to Shell environmental
variables before using them in the mailx command .
setShellEnvVar("Sub=formName->subFieldName->value ") .Even by this I
am not able to assign the value of the string field(subject name) to
the variable Sub.

Regards,
Isra
 
eesra.m@gmail.com writes:

How do I use Skill Variables / Skill Expressions in a Unix Command ??
Build a string (with sprintf) and then use system on that string.

Yours,

--
Jean-Marc
 

Welcome to EDABoard.com

Sponsor

Back
Top