Hi,
I'm wondering if it's possible to execute a command with a PV's value as a parameter. For example, to open the IP address defined by a PV (device:ipaddr, stringin) in a browser.
I tried command:
firefox $(device:ipaddr)
The browser was directed to http://www.$(device:ipaddr).com/
I tried command:
firefox `caget device:ipaddr | awk '{print $2}'`
It works in shell, but in CS-Studio it jumps to http://www.`caget.com/
What works for me now is to run the command in python script, but it's kind of cumbersome. Are there better ways to implement? Thanks.
|