Run command in ServiceNow Discovery Pattern

Rutuja K
Giga Guru

Hi all,

 

How we execute commands in pattern?

I have a temp variable install_dir, in next step I want to query ls -ld $install_dir

 

how to get this?

 

Thank you!

1 ACCEPTED SOLUTION

Rutuja K
Giga Guru

I missed "". Command should be "ls -ld " +$install_dir

View solution in original post

2 REPLIES 2

Bert_c1
Kilo Patron

I don't know of any way to run a Linux command from Servicenow. Maybe others here will post a means.

Rutuja K
Giga Guru

I missed "". Command should be "ls -ld " +$install_dir