I think your problem is that you are trying to execute from a linux command and the subsystem resides at the asterisk level.

Not that you can do it from there but you must address it where it resides.


...mike/kb8jnm



----- Original Message -----
From:
"Users of Asterisk app_rpt" <app_rpt-users@lists.allstarlink.org>

To:
<App_rpt-users@lists.allstarlink.org>
Cc:

Sent:
Tue, 4 Apr 2017 16:39:51 -0700
Subject:
[App_rpt-users] event subsystem variable use in system call


I am learning about the event subsystem.

One of my events looks like this:

echo bla ${RPT_ALINKS} >> /tmp/blabla =  s|T|RPT_NUMLINKS

This executes when I connect.  The contents of /tmp/blabla is simply bla.  I would have expected ${RPT_ALINKS} to have been expanded.  

Am I assuming functionality that doesn't exist?

Lowell