<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/2042/1/7/_/styles/combined.css?spaceKey=AST&forWysiwyg=true" type="text/css">
</head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
<h2><a href="https://wiki.asterisk.org/wiki/display/AST/Using+The+include+and+exec+Constructs?focusedCommentId=13076226#comment-13076226">Using The include and exec Constructs</a></h2>
<h4>Page
<b>comment added</b> by <a href="https://wiki.asterisk.org/wiki/display/~mdavenport">Malcolm Davenport</a>
</h4>
<br/>
<div class="notificationGreySide">
<p>Something like:</p>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>#exec /usr/bin/curl -s http://example.com/mystuff > /etc/asterisk/mystuff
#include mystuff
</pre>
</div></div>
</div>
<div style="border-bottom: 1px solid #ddd; padding: 10px 20px 7px 20px;">
<strong>In reply to a comment by <a href="/wiki/display/~laar789"
class="url fn confluence-userlink" data-username="laar789"
>Luis Aguirre</a>:</strong><br/>
<p>Hi, I have a request please. someone could put an example of a shell script for the extensions.conf using #exec. I have a simple script, which use echo add an exten, but it doesn´t work...please help</p>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;">
<a href="https://wiki.asterisk.org/wiki/users/viewnotifications.action" class="grey">Change Notification Preferences</a>
</div>
<a href="https://wiki.asterisk.org/wiki/display/AST/Using+The+include+and+exec+Constructs?focusedCommentId=13076226#comment-13076226">View Online</a>
|
<a id="reply-13076226" href="https://wiki.asterisk.org/wiki/display/AST/Using+The+include+and+exec+Constructs?replyToComment=13076226#comment-13076226">Reply To This</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>