The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

DB rule - parameters of Command Exec Action

Highlighted
Marcos Nagamura
Occasional Advisor

DB rule - parameters of Command Exec Action

Hi,

sorry if this question has been submitted before.
Excuse me my poor english writing skill and the long explanation.

When I create a DB rule with a Command Exec Action, I include some fields of a service call as parameters to the command I am calling.
However, any of these parameters may contain whitespaces in it, so the DOS batch command turns to evaluate "John Doe" as 2 parameters instead of 1.

Is there a way to enclose a parameter preserving whitespaces ? I tried single quotes, double quotes, with no success.

Thanks in advance,
zagab
4 REPLIES
Marcos Nagamura
Occasional Advisor

Re: DB rule - parameters of Command Exec Action

Hi there,
sorry I forgot to tell the environment:
Windows 2003 Server
HP OVSD 4.5 sp15

Thanks
zagab
MarkvL
Honored Contributor

Re: DB rule - parameters of Command Exec Action

Hi Zagab,

Can you post your command exec action here?

Mark
HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Marcos Nagamura
Occasional Advisor

Re: DB rule - parameters of Command Exec Action

Hi Mark,

the Command line contains
C:\scripts\automaticApproval.bat

the Parameters contains
[ID] [Name] [Category]

The batch file text:
@C:\PHP\php.exe -f C:\scripts\automaticApproval.php %1 %2 %3

Thanks
zagab
Vasily Kamenev
Honored Contributor

Re: DB rule - parameters of Command Exec Action

Hi
in Rule use symbols " , so :
xxx.bat "[Name]" "[other fields]"

Vassili
//Add this to "OnDomLoad" event