AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Passing variables to ^system()?
 
 

I’ve looked at the documentation and back in the forum a bit and couldn’t find if ^system() permits variables in the parameters.  For example,

u: (show me something)
  $$tmp=”/path/to/picture.jpg”
  ^system(/usr/bin/viewer $$tmp)

Is there an escape thing I’m missing? In Linux/Ubuntu, the $$ gets replaces with the PID, such that the command stream looks something like: /usr/bin/viewer 4321tmp

System DOES work with static parameters, I was wondering if support was there for dynamic parameters and, if so, how to make that work.

Cheers!

 

 
  [ # 1 ]

As far as I know, current CS versions do eval the parameters. A version serveral releases ago did not.

 

 
  [ # 2 ]

I’m on 4.5, I’ll grab 4.7 and follow up…thanks.

 

 
  [ # 3 ]

Awesome. The update does the trick. I just import 4.5 into svn a month and a half ago! You work fast.

 

 
  login or register to react