Displaying 5 results from an estimated 5 matches for "tryexec".
Did you mean:
preexec
2011 Feb 21
1
Dialplan execution stops on app call even with TryExec (Am I missing something simple?)
...AXOPT(ecm)=no))
;------------------------------
; Level3 V17/V34 modems were unreliable and V17 (14400) wasn't working so we downgrade to slower fax-modems
exten => s,n,Set(FAXOPT(modem)="V27,V29")
;------------------------------
exten => s,n,Set(FAXDELIVERED=no)
exten => s,n,TryExec(ReceiveFAX(${FAX_FILE_NAME},f))
exten => s,n,System(/var/www/html/vncake/cake/console/cake -app /var/www/html/vncake/app email_fax ${FAX_FILE_NAME} ${FAXPAGES} err:${FAXOPT(error)})
exten => s,n,Set(FAXDELIVERED=yes)
exten => s,n,ExecIf($["${FAXOPT(error)}"=""]?Set(FAXS...
2007 Nov 10
2
Record() : How to get filename created with %d?
...Problem is, the documentation doesn't explain how to refer to this
filename later in the dialplan :-/
In this particular example, I want to move the file to the web
server's /htdocs so users can listen to the file through their web
browser (ie. with no need to be connected to *), and used TryExec() to
do this:
===========
exten => cid,1,Set(CALLERIDNAME = ${DB(cidname/${CALLERIDNUM})})
;Is there a way to use Background() without using _[1-4] below?
exten => cid,n,Background(/root/asterisk_sound_files/main_menu)
exten => cid,n,Hangup()
exten => _[1-4],1,Set(SOFTWARE=${IF($[${EX...
2020 Mar 28
0
[klibc:update-dash] dash: exec: Do not allocate stack string in padvance
...13 +118,13 @@ shellexec(char **argv, const char *path, int idx)
e = errno;
} else {
e = ENOENT;
- while ((cmdname = padvance(&path, argv[0])) != NULL) {
+ while (padvance(&path, argv[0]) >= 0) {
+ cmdname = stackblock();
if (--idx < 0 && pathopt == NULL) {
tryexec(cmdname, argv, envp);
if (errno != ENOENT && errno != ENOTDIR)
e = errno;
}
- stunalloc(cmdname);
}
}
@@ -182,8 +182,7 @@ repeat:
const char *pathopt;
-char *
-padvance(const char **path, const char *name)
+int padvance(const char **path, const char *name)
{...
2020 Mar 28
0
[klibc:update-dash] dash: exec: Stricter pathopt parsing
...nce_magic(&path, dest, 0)) >= 0) {
c = *p;
p = stalloc(len);
diff --git a/usr/dash/exec.c b/usr/dash/exec.c
index 04ee2ba9..8948754b 100644
--- a/usr/dash/exec.c
+++ b/usr/dash/exec.c
@@ -92,7 +92,7 @@ STATIC int builtinloc = -1; /* index in path of %builtin, or -1 */
STATIC void tryexec(char *, char **, char **);
STATIC void printentry(struct tblentry *);
-STATIC void clearcmdentry(int);
+STATIC void clearcmdentry(void);
STATIC struct tblentry *cmdlookup(const char *, int);
STATIC void delete_cmd_entry(void);
STATIC void addcmdentry(char *, struct cmdentry *);
@@ -168,7 +168,2...
2007 Aug 23
0
[git patch] klibc dash 0.5.4 update
...usr/dash/exec.c b/usr/dash/exec.c
index c55683d..8a1f722 100644
--- a/usr/dash/exec.c
+++ b/usr/dash/exec.c
@@ -110,7 +110,6 @@ shellexec(char **argv, const char *path, int idx)
char **envp;
int exerrno;
- clearredir(1);
envp = environment();
if (strchr(argv[0], '/') != NULL) {
tryexec(argv[0], argv, envp);
diff --git a/usr/dash/input.c b/usr/dash/input.c
index 7f99d4a..11f7a3f 100644
--- a/usr/dash/input.c
+++ b/usr/dash/input.c
@@ -452,7 +452,6 @@ out:
void
setinputfd(int fd, int push)
{
- (void) fcntl(fd, F_SETFD, FD_CLOEXEC);
if (push) {
pushfile();
parsefile->b...