Re: Re: Execute files in event
By: TinTino to Digital Man on Mon Dec 04 2017 05:08 pm
On Tue, 3 Oct 2017 23:25:01 -0700, "Digital Man" <digital.man@VERT> wrote:
Re: Re: Execute files in event
By: TinTino to Digital Man on Mon Dec 04 2017 07:33 am
On Tue, 3 Oct 2017 14:48:27 -0700, "Digital Man" <digital.man@VERT> wrote:
Re: Re: Execute files in event
By: TinTino to Digital Man on Sun Dec 03 2017 10:50 am
On Mon, 2 Oct 2017 18:57:33 -0700, "Digital Man" <digital.man@VERT> wrote:
doI can?t get executing files working in timed event. Have
tried the most n Exempel: addfiles in tickit.js not working... and tried with other files too, but if they executing in a js file it not working. Can i
mananyting at that??
Make sure your command-lines begin with '?' or '*' (to execute a JavaScript module).
digital
allYes, they all already starting with ? (?tickit.js) but
on"system.exec" command it just jumping over, not executing them.
The system.exec() JS method cannot be used to execute a JavaScript module. F the jsobjs.html documentation: executes a native system/shell command-line
"native" means not a script.
Use load() or bbs.exec() to execute a JavaScript module.
digital man
Sorry my bad english, but if you look in tickit.js there are
line 561:
24cmd = system.exec_dir+"addfiles "+i+" -zd +"+f.name+"
be13";
log(LOG_DEBUG, "Executing: '"+cmd+"'.");
system.exec(cmd);
but that system.exec never running, it just jumping over that line, so tickit not working for me. And it is same in all files with system.exec,
they never running. How I fix that?
Do you see the "Executing:" debug line in your log? Can you paste it here? Does
the file exec/addfiles exist?
Here is the log:
2017-10-03 10:07:00 Executing external: ?tickit.js
2017-10-03 10:07:00 Parsing s:/sbbs/fido/SecureIn//TK102401.tic 2017-10-03 10:07:00 Moving file from s:\sbbs\fido\SecureIn\DAILYLST.272 to
s:\files\fidonet\dailylst\.
2017-10-03 10:07:00 Deleting TIC file 's:/sbbs/fido/SecureIn//TK102401.tic'. 2017-10-03 10:07:00 Executing: 's:\sbbs\exec\addfiles fido-dailylst -zd *System +s:\sbbs\tempo\event\tickit-files.bbs 24 13'.
2017-10-03 10:10:04 BBS Events thread terminated
It doing all lines but not running addfiles. Yes the file exist in exec.
If I change command line from "?tickit.js" to "%!jsexec tickit.js" all working fine, but I dont get any log.
I doubt very much that the system.exec() line is being "jumped over". It's >possible that the call to the C library function system() is not working, but >I'm pretty certain than it is still
tocalled by Synchronet.
Ok, it not jumping over, but it don't working with system.exec, it is same on alla other script with system.exec
You could try printing/logging the return value of system.exec() and the value >of the 'errno' global property.
How I do it? I don't find any error messages.
Change the script to the following, replacing the system.exec line:
log(LOG_DEBUG, "system returned " + system.exec(cmd));
log(LOG_DEBUG, "errno = " + errno);
Then paste the results here.
2017-10-04 07:27:27 Moving file from s:\sbbs\fido\SecureIn\DAILYLST.272 to
s:\files\fidonet\dailylst\.
2017-10-04 07:27:27 Deleting TIC file 's:/sbbs/fido/SecureIn//TK102401.tic'. 2017-10-04 07:27:27 Executing: 'S:\sbbs\exec\addfiles fido-dailylst -z *System +s:\sbbs\tempo\event\tickit-files.bbs 24 13'.
2017-10-04 07:27:27 system returned 1
2017-10-04 07:27:27 errno = 2
Error '2' is file not found. Is it possible you have both "addfiles" and >"addfiles.exe" in your "exec" directory? If you add an "%." after addfiles on >the commadn-line, that'd fix that problem (auto-add ".exe" on Windows).
No, %. not working, and put .exe not working:
2017-10-04 16:54:56 Executing external: ?tickit.js
2017-10-04 16:54:56 Parsing s:/sbbs/fido/SecureIn//TK102401.tic 2017-10-04 16:54:56 Moving file from s:\sbbs\fido\SecureIn\DAILYLST.272
s:\files\fidonet\dailylst\.
2017-10-04 16:54:56 Deleting TIC file 's:/sbbs/fido/SecureIn//TK102401.tic'. 2017-10-04 16:54:56 Executing: 'S:\sbbs\exec\addfiles.exe fido-dailylst -z *System +s:\sbbs\tempo\event\tickit-files.bbs 24 13'.
2017-10-04 16:54:56 system returned 1
2017-10-04 16:54:56 errno = 2
and it is only one files with the name addfiles.exe
What version of addfiles.exe is it? If it's a 16-bit DOS version, then that >would not work.
Did you try the exec.js script test I posted here? Does that work?i tried now, and it not give me any dir, only:
digital man
Re: Re: Execute files in event
By: TinTino to Digital Man on Mon Dec 04 2017 05:08 pm
On Tue, 3 Oct 2017 23:25:01 -0700, "Digital Man" <digital.man@VERT> wrote:
Re: Re: Execute files in event
By: TinTino to Digital Man on Mon Dec 04 2017 07:33 am
On Tue, 3 Oct 2017 14:48:27 -0700, "Digital Man" <digital.man@VERT> wrote:
Re: Re: Execute files in event
By: TinTino to Digital Man on Sun Dec 03 2017 10:50 am
On Mon, 2 Oct 2017 18:57:33 -0700, "Digital Man" <digital.man@VERT> wrote:
doI can?t get executing files working in timed event. Have
tried the most n Exempel: addfiles in tickit.js not working... and tried with other files too, but if they executing in a js file it not working. Can i
mananyting at that??
Make sure your command-lines begin with '?' or '*' (to execute a JavaScript module).
digital
allYes, they all already starting with ? (?tickit.js) but
on"system.exec" command it just jumping over, not executing them.
The system.exec() JS method cannot be used to execute a JavaScript module. F the jsobjs.html documentation: executes a native system/shell command-line
"native" means not a script.
Use load() or bbs.exec() to execute a JavaScript module.
digital man
Sorry my bad english, but if you look in tickit.js there are
line 561:
24cmd = system.exec_dir+"addfiles "+i+" -zd +"+f.name+"
be13";
log(LOG_DEBUG, "Executing: '"+cmd+"'.");
system.exec(cmd);
but that system.exec never running, it just jumping over that line, so tickit not working for me. And it is same in all files with system.exec,
they never running. How I fix that?
Do you see the "Executing:" debug line in your log? Can you paste it here? Does
the file exec/addfiles exist?
Here is the log:
2017-10-03 10:07:00 Executing external: ?tickit.js
2017-10-03 10:07:00 Parsing s:/sbbs/fido/SecureIn//TK102401.tic 2017-10-03 10:07:00 Moving file from s:\sbbs\fido\SecureIn\DAILYLST.272 to
s:\files\fidonet\dailylst\.
2017-10-03 10:07:00 Deleting TIC file 's:/sbbs/fido/SecureIn//TK102401.tic'. 2017-10-03 10:07:00 Executing: 's:\sbbs\exec\addfiles fido-dailylst -zd *System +s:\sbbs\tempo\event\tickit-files.bbs 24 13'.
2017-10-03 10:10:04 BBS Events thread terminated
It doing all lines but not running addfiles. Yes the file exist in exec.
If I change command line from "?tickit.js" to "%!jsexec tickit.js" all working fine, but I dont get any log.
I doubt very much that the system.exec() line is being "jumped over". It's >possible that the call to the C library function system() is not working, but >I'm pretty certain than it is still
tocalled by Synchronet.
Ok, it not jumping over, but it don't working with system.exec, it is same on alla other script with system.exec
You could try printing/logging the return value of system.exec() and the value >of the 'errno' global property.
How I do it? I don't find any error messages.
Change the script to the following, replacing the system.exec line:
log(LOG_DEBUG, "system returned " + system.exec(cmd));
log(LOG_DEBUG, "errno = " + errno);
Then paste the results here.
2017-10-04 07:27:27 Moving file from s:\sbbs\fido\SecureIn\DAILYLST.272 to
s:\files\fidonet\dailylst\.
2017-10-04 07:27:27 Deleting TIC file 's:/sbbs/fido/SecureIn//TK102401.tic'. 2017-10-04 07:27:27 Executing: 'S:\sbbs\exec\addfiles fido-dailylst -z *System +s:\sbbs\tempo\event\tickit-files.bbs 24 13'.
2017-10-04 07:27:27 system returned 1
2017-10-04 07:27:27 errno = 2
Error '2' is file not found. Is it possible you have both "addfiles" and >"addfiles.exe" in your "exec" directory? If you add an "%." after addfiles on >the commadn-line, that'd fix that problem (auto-add ".exe" on Windows).
No, %. not working, and put .exe not working:
2017-10-04 16:54:56 Executing external: ?tickit.js
2017-10-04 16:54:56 Parsing s:/sbbs/fido/SecureIn//TK102401.tic 2017-10-04 16:54:56 Moving file from s:\sbbs\fido\SecureIn\DAILYLST.272
s:\files\fidonet\dailylst\.
2017-10-04 16:54:56 Deleting TIC file 's:/sbbs/fido/SecureIn//TK102401.tic'. 2017-10-04 16:54:56 Executing: 'S:\sbbs\exec\addfiles.exe fido-dailylst -z *System +s:\sbbs\tempo\event\tickit-files.bbs 24 13'.
2017-10-04 16:54:56 system returned 1
2017-10-04 16:54:56 errno = 2
and it is only one files with the name addfiles.exe
What version of addfiles.exe is it? If it's a 16-bit DOS version, then that >would not work.
Did you try the exec.js script test I posted here? Does that work?
digital man
I can?t get executing files working in timed event. Have tried the most now. Exempel: addfiles in tickit.js not working... and tried with other files too, but if they executing in a js file it not working.
Can i do anyting at that??
Re: Execute files in event
By: Fidde to Digital Man on Fri Sep 29 2017 01:09 pm
I can?t get executing files working in timed event. Have tried the most n Exempel: addfiles in tickit.js not working... and tried with other files too, but if they executing in a js file it not working.
Can i do anyting at that??
Make sure your command-lines begin with '?' or '*' (to execute a JavaScript module).
digital man
RE: Execute files in event
BY: Digital Man to Fidde on Fri 29 Sep 2017 15:30:06
Re: Execute files in event
By: Fidde to Digital Man on Fri Sep 29 2017 01:09 pm
I can?t get executing files working in timed event. Have tried the most n Exempel: addfiles in tickit.js not working... and tried with other files too, but if they executing in a js file it not working. Can i do anyting at that??
Make sure your command-lines begin with '?' or '*' (to execute a JavaScript module).
digital man
Yes, they all already starting with ? (?tickit.js) but all "system.exec" command it just jumping over, not executing them.
Re: Execute files in event
By: TinTino to Digital Man on Sat Sep 30 2017 11:23 am
RE: Execute files in event
BY: Digital Man to Fidde on Fri 29 Sep 2017 15:30:06
Re: Execute files in event
By: Fidde to Digital Man on Fri Sep 29 2017 01:09 pm
I can?t get executing files working in timed event. Have tried the most n Exempel: addfiles in tickit.js not working... and tried with other files too, but if they executing in a js file it not working. Can i do anyting at that??
Make sure your command-lines begin with '?' or '*' (to execute a JavaScript module).
digital man
Yes, they all already starting with ? (?tickit.js) but all "system.exec" command it just jumping over, not executing them.
The system.exec() JS method cannot be used to execute a JavaScript module. F the jsobjs.html documentation: executes a native system/shell command-line
"native" means not a script.
Use load() or bbs.exec() to execute a JavaScript module.
digital man
RE: Execute files in event
BY: Digital Man to TinTino on Sat 30 Sep 2017 14:47:04
Re: Execute files in event
By: TinTino to Digital Man on Sat Sep 30 2017 11:23 am
RE: Execute files in event
BY: Digital Man to Fidde on Fri 29 Sep 2017 15:30:06
Re: Execute files in event
By: Fidde to Digital Man on Fri Sep 29 2017 01:09 pm
I can?t get executing files working in timed event. Have tried the most n Exempel: addfiles in tickit.js not working... and tried with other files too, but if they executing in a js file it not working. Can i do anyting at that??
Make sure your command-lines begin with '?' or '*' (to execute a JavaScript module).
digital man
Yes, they all already starting with ? (?tickit.js) but all "system.exec" command it just jumping over, not executing them.
The system.exec() JS method cannot be used to execute a JavaScript module. F the jsobjs.html documentation: executes a native system/shell command-line
"native" means not a script.
Use load() or bbs.exec() to execute a JavaScript module.
digital man
Sorry my bad english, but if you look in tickit.js there are on line 561:
cmd = system.exec_dir+"addfiles "+i+" -zd +"+f.name+" 24 13";
log(LOG_DEBUG, "Executing: '"+cmd+"'.");
system.exec(cmd);
but that system.exec never running, it just jumping over that line, so tickit not working for me. And it is same in all files with system.exec, they never running. How I fix that?
I can?t get executing files working in timed event. Have tried the most n Exempel: addfiles in tickit.js not working... and tried with other files too, but if they executing in a js file it not working. Can i do anyting at that??
Make sure your command-lines begin with '?' or '*' (to execute a JavaScript module).
digital man
Yes, they all already starting with ? (?tickit.js) but all "system.exec" command it just jumping over, not executing them.
The system.exec() JS method cannot be used to execute a JavaScript module. F the jsobjs.html documentation: executes a native system/shell command-line
"native" means not a script.
Use load() or bbs.exec() to execute a JavaScript module.
digital man
Sorry my bad english, but if you look in tickit.js there are on line 561:
cmd = system.exec_dir+"addfiles "+i+" -zd +"+f.name+" 24 13";
log(LOG_DEBUG, "Executing: '"+cmd+"'.");
system.exec(cmd);
but that system.exec never running, it just jumping over that line, so tickit not working for me. And it is same in all files with system.exec, they never running. How I fix that?
Do you see the "Executing:" debug line in your log? Can you paste it here? Does
the file exec/addfiles exist?
I doubt very much that the system.exec() line is being "jumped over". It's >possible that the call to the C library function system() is not working, but >I'm pretty certain than it is still be called by Synchronet.
You could try printing/logging the return value of system.exec() and the value >of the 'errno' global property.
That along with the man page for "system"
(assuming Linux) should help determine the cause of the problem.
digital man
On Mon, 2 Oct 2017 18:57:33 -0700, "Digital Man" <digital.man@VERT> wrote:
I can?t get executing files working in timed event. Have tried the most n Exempel: addfiles in tickit.js not working... and tried with other files too, but if they executing in a js file it not working. Can i do anyting at that??
Make sure your command-lines begin with '?' or '*' (to execute a JavaScript module).
digital man
Yes, they all already starting with ? (?tickit.js) but all "system.exec" command it just jumping over, not executing them.
The system.exec() JS method cannot be used to execute a JavaScript module. F the jsobjs.html documentation: executes a native system/shell command-line
"native" means not a script.
Use load() or bbs.exec() to execute a JavaScript module.
digital man
Sorry my bad english, but if you look in tickit.js there are on line 561:
cmd = system.exec_dir+"addfiles "+i+" -zd +"+f.name+" 24 13";
log(LOG_DEBUG, "Executing: '"+cmd+"'.");
system.exec(cmd);
but that system.exec never running, it just jumping over that line, so tickit not working for me. And it is same in all files with system.exec, they never running. How I fix that?
Do you see the "Executing:" debug line in your log? Can you paste it here? Does
the file exec/addfiles exist?
Here is the log:
2017-10-03 10:07:00 Executing external: ?tickit.js
2017-10-03 10:07:00 Parsing s:/sbbs/fido/SecureIn//TK102401.tic
2017-10-03 10:07:00 Moving file from s:\sbbs\fido\SecureIn\DAILYLST.272 to s:\files\fidonet\dailylst\.
2017-10-03 10:07:00 Deleting TIC file 's:/sbbs/fido/SecureIn//TK102401.tic'. 2017-10-03 10:07:00 Executing: 's:\sbbs\exec\addfiles fido-dailylst -zd *System +s:\sbbs\tempo\event\tickit-files.bbs 24 13'.
2017-10-03 10:10:04 BBS Events thread terminated
It doing all lines but not running addfiles. Yes the file exist in exec.
If I change command line from "?tickit.js" to "%!jsexec tickit.js" all working fine, but I dont get any log.
I doubt very much that the system.exec() line is being "jumped over". It's >possible that the call to the C library function system() is not working, but >I'm pretty certain than it is still be called by Synchronet.
Ok, it not jumping over, but it don't working with system.exec, it is same on alla other script with system.exec
You could try printing/logging the return value of system.exec() and the value >of the 'errno' global property.
How I do it? I don't find any error messages.
Ok, it not jumping over, but it don't working with system.exec, it is same on alla other script with system.exec
Re: Re: Execute files in event
By: TinTino to Digital Man on Sun Dec 03 2017 10:50 am
On Mon, 2 Oct 2017 18:57:33 -0700, "Digital Man" <digital.man@VERT> wrote:
I can?t get executing files working in timed event. Have tried the most n Exempel: addfiles in tickit.js not working... and tried with other files too, but if they executing in a js file it not working. Can i do anyting at that??
Make sure your command-lines begin with '?' or '*' (to execute a JavaScript module).
digital man
Yes, they all already starting with ? (?tickit.js) but all "system.exec" command it just jumping over, not executing them.
The system.exec() JS method cannot be used to execute a JavaScript module. F the jsobjs.html documentation: executes a native system/shell command-line
"native" means not a script.
Use load() or bbs.exec() to execute a JavaScript module.
digital man
Sorry my bad english, but if you look in tickit.js there are on line 561:
system.exec,cmd = system.exec_dir+"addfiles "+i+" -zd +"+f.name+" 24 13";
log(LOG_DEBUG, "Executing: '"+cmd+"'.");
system.exec(cmd);
but that system.exec never running, it just jumping over that line, so tickit not working for me. And it is same in all files with
tothey never running. How I fix that?
Do you see the "Executing:" debug line in your log? Can you paste it here? Does
the file exec/addfiles exist?
Here is the log:
2017-10-03 10:07:00 Executing external: ?tickit.js
2017-10-03 10:07:00 Parsing s:/sbbs/fido/SecureIn//TK102401.tic 2017-10-03 10:07:00 Moving file from s:\sbbs\fido\SecureIn\DAILYLST.272
s:\files\fidonet\dailylst\.
2017-10-03 10:07:00 Deleting TIC file 's:/sbbs/fido/SecureIn//TK102401.tic'. 2017-10-03 10:07:00 Executing: 's:\sbbs\exec\addfiles fido-dailylst -zd *System +s:\sbbs\tempo\event\tickit-files.bbs 24 13'.
2017-10-03 10:10:04 BBS Events thread terminated
It doing all lines but not running addfiles. Yes the file exist in exec.
If I change command line from "?tickit.js" to "%!jsexec tickit.js" all working fine, but I dont get any log.
I doubt very much that the system.exec() line is being "jumped over". It's >possible that the call to the C library function system() is not working, but >I'm pretty certain than it is still be called by Synchronet.
Ok, it not jumping over, but it don't working with system.exec, it is same on alla other script with system.exec
You could try printing/logging the return value of system.exec() and the value >of the 'errno' global property.
How I do it? I don't find any error messages.
Change the script to the following, replacing the system.exec line:
log(LOG_DEBUG, "system returned " + system.exec(cmd));
log(LOG_DEBUG, "errno = " + errno);
Then paste the results here.
digital man
On Tue, 3 Oct 2017 14:48:27 -0700, "Digital Man" <digital.man@VERT> wrote:
Re: Re: Execute files in event
By: TinTino to Digital Man on Sun Dec 03 2017 10:50 am
On Mon, 2 Oct 2017 18:57:33 -0700, "Digital Man" <digital.man@VERT> wrote:
I can?t get executing files working in timed event. Have tried the most n Exempel: addfiles in tickit.js not working... and tried with other files too, but if they executing in a js file it not working. Can i do anyting at that??
Make sure your command-lines begin with '?' or '*' (to execute a JavaScript module).
digital man
Yes, they all already starting with ? (?tickit.js) but all "system.exec" command it just jumping over, not executing them.
The system.exec() JS method cannot be used to execute a JavaScript module. F the jsobjs.html documentation: executes a native system/shell command-line
"native" means not a script.
Use load() or bbs.exec() to execute a JavaScript module.
digital man
Sorry my bad english, but if you look in tickit.js there are on line 561:
cmd = system.exec_dir+"addfiles "+i+" -zd +"+f.name+" 24 13";
log(LOG_DEBUG, "Executing: '"+cmd+"'.");
system.exec(cmd);
but that system.exec never running, it just jumping over that line, so tickit not working for me. And it is same in all files with system.exec,
they never running. How I fix that?
Do you see the "Executing:" debug line in your log? Can you paste it here? Does
the file exec/addfiles exist?
Here is the log:
2017-10-03 10:07:00 Executing external: ?tickit.js
2017-10-03 10:07:00 Parsing s:/sbbs/fido/SecureIn//TK102401.tic 2017-10-03 10:07:00 Moving file from s:\sbbs\fido\SecureIn\DAILYLST.272 to
s:\files\fidonet\dailylst\.
2017-10-03 10:07:00 Deleting TIC file 's:/sbbs/fido/SecureIn//TK102401.tic'. 2017-10-03 10:07:00 Executing: 's:\sbbs\exec\addfiles fido-dailylst -zd *System +s:\sbbs\tempo\event\tickit-files.bbs 24 13'.
2017-10-03 10:10:04 BBS Events thread terminated
It doing all lines but not running addfiles. Yes the file exist in exec. If I change command line from "?tickit.js" to "%!jsexec tickit.js" all working fine, but I dont get any log.
I doubt very much that the system.exec() line is being "jumped over". It's >possible that the call to the C library function system() is not working, but >I'm pretty certain than it is still be called by Synchronet.
Ok, it not jumping over, but it don't working with system.exec, it is same on alla other script with system.exec
You could try printing/logging the return value of system.exec() and the value >of the 'errno' global property.
How I do it? I don't find any error messages.
Change the script to the following, replacing the system.exec line:
log(LOG_DEBUG, "system returned " + system.exec(cmd));
log(LOG_DEBUG, "errno = " + errno);
Then paste the results here.
2017-10-04 07:27:27 Moving file from s:\sbbs\fido\SecureIn\DAILYLST.272 to s:\files\fidonet\dailylst\.
2017-10-04 07:27:27 Deleting TIC file 's:/sbbs/fido/SecureIn//TK102401.tic'. 2017-10-04 07:27:27 Executing: 'S:\sbbs\exec\addfiles fido-dailylst -z *System +s:\sbbs\tempo\event\tickit-files.bbs 24 13'.
2017-10-04 07:27:27 system returned 1
2017-10-04 07:27:27 errno = 2
Re: Re: Execute files in event
By: TinTino to Digital Man on Mon Dec 04 2017 07:33 am
On Tue, 3 Oct 2017 14:48:27 -0700, "Digital Man" <digital.man@VERT> wrote:
Re: Re: Execute files in event
By: TinTino to Digital Man on Sun Dec 03 2017 10:50 am
On Mon, 2 Oct 2017 18:57:33 -0700, "Digital Man" <digital.man@VERT> wrote:
HaveI can?t get executing files working in timed event.
tried the most n Exempel: addfiles in tickit.js not working... and tried with other files too, but if they executing in a js file it not working. Can i do anyting at that??
Make sure your command-lines begin with '?' or '*' (to execute a JavaScript module).
digital man
Yes, they all already starting with ? (?tickit.js) but all "system.exec" command it just jumping over, not executing them.
The system.exec() JS method cannot be used to execute a JavaScript module. F the jsobjs.html documentation: executes a native system/shell command-line
"native" means not a script.
Use load() or bbs.exec() to execute a JavaScript module.
digital man
Sorry my bad english, but if you look in tickit.js there are on line 561:
exec.cmd = system.exec_dir+"addfiles "+i+" -zd +"+f.name+" 24 13";
log(LOG_DEBUG, "Executing: '"+cmd+"'.");
system.exec(cmd);
but that system.exec never running, it just jumping over that line, so tickit not working for me. And it is same in all files with system.exec,
they never running. How I fix that?
Do you see the "Executing:" debug line in your log? Can you paste it here? Does
the file exec/addfiles exist?
Here is the log:
2017-10-03 10:07:00 Executing external: ?tickit.js
2017-10-03 10:07:00 Parsing s:/sbbs/fido/SecureIn//TK102401.tic 2017-10-03 10:07:00 Moving file from s:\sbbs\fido\SecureIn\DAILYLST.272 to
s:\files\fidonet\dailylst\.
2017-10-03 10:07:00 Deleting TIC file 's:/sbbs/fido/SecureIn//TK102401.tic'. 2017-10-03 10:07:00 Executing: 's:\sbbs\exec\addfiles fido-dailylst -zd *System +s:\sbbs\tempo\event\tickit-files.bbs 24 13'.
2017-10-03 10:10:04 BBS Events thread terminated
It doing all lines but not running addfiles. Yes the file exist in
toIf I change command line from "?tickit.js" to "%!jsexec tickit.js" all working fine, but I dont get any log.
I doubt very much that the system.exec() line is being "jumped over". It's >possible that the call to the C library function system() is not working, but >I'm pretty certain than it is still be called by Synchronet.
Ok, it not jumping over, but it don't working with system.exec, it is same on alla other script with system.exec
You could try printing/logging the return value of system.exec() and the value >of the 'errno' global property.
How I do it? I don't find any error messages.
Change the script to the following, replacing the system.exec line:
log(LOG_DEBUG, "system returned " + system.exec(cmd));
log(LOG_DEBUG, "errno = " + errno);
Then paste the results here.
2017-10-04 07:27:27 Moving file from s:\sbbs\fido\SecureIn\DAILYLST.272
s:\files\fidonet\dailylst\.
2017-10-04 07:27:27 Deleting TIC file 's:/sbbs/fido/SecureIn//TK102401.tic'. 2017-10-04 07:27:27 Executing: 'S:\sbbs\exec\addfiles fido-dailylst -z *System +s:\sbbs\tempo\event\tickit-files.bbs 24 13'.
2017-10-04 07:27:27 system returned 1
2017-10-04 07:27:27 errno = 2
Error '2' is file not found. Is it possible you have both "addfiles" and >"addfiles.exe" in your "exec" directory? If you add an "%." after addfiles on >the commadn-line, that'd fix that problem (auto-add ".exe" on Windows).
On Tue, 3 Oct 2017 23:25:01 -0700, "Digital Man" <digital.man@VERT> wrote:
Re: Re: Execute files in event
By: TinTino to Digital Man on Mon Dec 04 2017 07:33 am
On Tue, 3 Oct 2017 14:48:27 -0700, "Digital Man" <digital.man@VERT> wrote:
Re: Re: Execute files in event
By: TinTino to Digital Man on Sun Dec 03 2017 10:50 am
On Mon, 2 Oct 2017 18:57:33 -0700, "Digital Man" <digital.man@VERT> wrote:
I can?t get executing files working in timed event. Have
tried the most n Exempel: addfiles in tickit.js not working... and tried with other files too, but if they executing in a js file it not working. Can i do anyting at that??
Make sure your command-lines begin with '?' or '*' (to execute a JavaScript module).
digital man
Yes, they all already starting with ? (?tickit.js) but all "system.exec" command it just jumping over, not executing them.
The system.exec() JS method cannot be used to execute a JavaScript module. F the jsobjs.html documentation: executes a native system/shell command-line
"native" means not a script.
Use load() or bbs.exec() to execute a JavaScript module.
digital man
Sorry my bad english, but if you look in tickit.js there are on line 561:
cmd = system.exec_dir+"addfiles "+i+" -zd +"+f.name+" 24 13";
log(LOG_DEBUG, "Executing: '"+cmd+"'.");
system.exec(cmd);
but that system.exec never running, it just jumping over that line, so tickit not working for me. And it is same in all files with system.exec,
they never running. How I fix that?
Do you see the "Executing:" debug line in your log? Can you paste it here? Does
the file exec/addfiles exist?
Here is the log:
2017-10-03 10:07:00 Executing external: ?tickit.js
2017-10-03 10:07:00 Parsing s:/sbbs/fido/SecureIn//TK102401.tic 2017-10-03 10:07:00 Moving file from s:\sbbs\fido\SecureIn\DAILYLST.272 to
s:\files\fidonet\dailylst\.
2017-10-03 10:07:00 Deleting TIC file 's:/sbbs/fido/SecureIn//TK102401.tic'. 2017-10-03 10:07:00 Executing: 's:\sbbs\exec\addfiles fido-dailylst -zd *System +s:\sbbs\tempo\event\tickit-files.bbs 24 13'.
2017-10-03 10:10:04 BBS Events thread terminated
It doing all lines but not running addfiles. Yes the file exist in exec.
If I change command line from "?tickit.js" to "%!jsexec tickit.js" all working fine, but I dont get any log.
I doubt very much that the system.exec() line is being "jumped over". It's >possible that the call to the C library function system() is not working, but >I'm pretty certain than it is still be called by Synchronet.
Ok, it not jumping over, but it don't working with system.exec, it is same on alla other script with system.exec
You could try printing/logging the return value of system.exec() and the value >of the 'errno' global property.
How I do it? I don't find any error messages.
Change the script to the following, replacing the system.exec line:
log(LOG_DEBUG, "system returned " + system.exec(cmd));
log(LOG_DEBUG, "errno = " + errno);
Then paste the results here.
2017-10-04 07:27:27 Moving file from s:\sbbs\fido\SecureIn\DAILYLST.272 to
s:\files\fidonet\dailylst\.
2017-10-04 07:27:27 Deleting TIC file 's:/sbbs/fido/SecureIn//TK102401.tic'. 2017-10-04 07:27:27 Executing: 'S:\sbbs\exec\addfiles fido-dailylst -z *System +s:\sbbs\tempo\event\tickit-files.bbs 24 13'.
2017-10-04 07:27:27 system returned 1
2017-10-04 07:27:27 errno = 2
Error '2' is file not found. Is it possible you have both "addfiles" and >"addfiles.exe" in your "exec" directory? If you add an "%." after addfiles on >the commadn-line, that'd fix that problem (auto-add ".exe" on Windows).
No, %. not working, and put .exe not working:
2017-10-04 16:54:56 Executing external: ?tickit.js
2017-10-04 16:54:56 Parsing s:/sbbs/fido/SecureIn//TK102401.tic
2017-10-04 16:54:56 Moving file from s:\sbbs\fido\SecureIn\DAILYLST.272 to s:\files\fidonet\dailylst\.
2017-10-04 16:54:56 Deleting TIC file 's:/sbbs/fido/SecureIn//TK102401.tic'. 2017-10-04 16:54:56 Executing: 'S:\sbbs\exec\addfiles.exe fido-dailylst -z *System +s:\sbbs\tempo\event\tickit-files.bbs 24 13'.
2017-10-04 16:54:56 system returned 1
2017-10-04 16:54:56 errno = 2
and it is only one files with the name addfiles.exe
| Sysop: | Winzlo |
|---|---|
| Location: | Minnesota, USA |
| Users: | 11 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 495945:53:37 |
| Calls: | 82 |
| Files: | 1,070 |
| D/L today: |
27 files (11,920K bytes) |
| Messages: | 287,041 |