• Re: Execute files in event

    From TinTino@1:103/705 to Digital Man on Tue Dec 5 09:48:10 2017
    On Wed, 4 Oct 2017 14:07:24 -0700, "Digital Man" <digital.man@VERT> wrote:

    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:


    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

    What version of addfiles.exe is it? If it's a 16-bit DOS version, then that >would not work.

    I use latest cvs v3.03 rev 1.54

    Did you try the exec.js script test I posted here? Does that work?

    digital man
    i tried now, and it not give me any dir, only:

    Parameter(s): ?exec dir c:\
    return value: 0

    /Fidde

    ---
    * Synchronet * Pepzi - Pepzi.se - 1000/1000 MBits
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From TinTino@1:103/705 to Digital Man on Tue Dec 5 09:54:24 2017
    On Wed, 4 Oct 2017 14:07:24 -0700, "Digital Man" <digital.man@VERT> wrote:

    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:


    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

    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

    But I have a system.exec under "Login event" and it working fine.

    ---
    * Synchronet * Pepzi - Pepzi.se - 1000/1000 MBits
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Fidde@1:103/705 to Digital Man on Fri Sep 29 13:09:28 2017
    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??

    Using win 10 x64

    /Fidde



    ---
    * Synchronet * Pepzi - Pepzi.se - 1000/1000 MBits
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Fidde on Fri Sep 29 15:30:06 2017
    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 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??

    Make sure your command-lines begin with '?' or '*' (to execute a JavaScript module).

    digital man

    Synchronet "Real Fact" #77:
    Rob Swindell still has dozens of BBS-related magazines in his possession. Norco, CA WX: 90.5oF, 22.0% humidity, 11 mph ENE wind, 0.00 inches rain/24hrs --- SBBSecho 3.01-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From TinTino@1:103/705 to Digital Man on Sat Sep 30 11:23:14 2017
    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.

    /Fidde

    ---
    * Synchronet * Pepzi - Pepzi.se - 1000/1000 MBits
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to TinTino on Sat Sep 30 14:47:04 2017
    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. From 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

    Synchronet "Real Fact" #11:
    DOVE-Net was originally an exclusive ("elite") WWIVnet network in O.C., Calif. Norco, CA WX: 82.4oF, 48.0% humidity, 12 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.01-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From TinTino@1:103/705 to Digital Man on Sun Oct 1 10:00:44 2017
    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?

    /Fidde

    ---
    * Synchronet * Pepzi - Pepzi.se - 1000/1000 MBits
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to TinTino on Mon Oct 2 18:57:32 2017
    Re: Execute files in event
    By: TinTino to Digital Man on Sun Oct 01 2017 10:00 am

    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?

    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

    Synchronet "Real Fact" #30:
    The COM I/O routines for Synchronet for DOS were written in ASM by Steve Deppe. Norco, CA WX: 67.6oF, 67.0% humidity, 10 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.01-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From TinTino@1:103/705 to Digital Man on Sun Dec 3 10:50:12 2017
    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.

    That along with the man page for "system"
    (assuming Linux) should help determine the cause of the problem.

    Synchronet BBS for Win32 Version 3.17 Debug
    Revision A Sep 30 2017 23:54 SMBLIB 2.60 MSC 1800
    JavaScript-C 1.8.5 2011-03-31
    WinSock 2.0
    Windows NT Version 10.0

    I running latest cvs under Windows 10 x64

    digital man

    /Fidde

    ---
    * Synchronet * Pepzi - Pepzi.se - 1000/1000 MBits
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to TinTino on Tue Oct 3 14:48:26 2017
    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.

    digital man

    Synchronet "Real Fact" #61:
    How to get Synchronet technical support: http://wiki.synchro.net/howto:support Norco, CA WX: 72.6oF, 60.0% humidity, 14 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.01-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to TinTino on Tue Oct 3 15:10:50 2017
    Re: Re: Execute files in event
    By: TinTino to Digital Man on Sun Dec 03 2017 10:50 am

    Ok, it not jumping over, but it don't working with system.exec, it is same on alla other script with system.exec

    To test your assertion "it is same an all other script with system.exec", I created a short script I called exec/exec.js:

    var ret = system.exec(argv.join(' '));
    print("return value: " + ret);
    if(ret)
    print("errno " + errno + ": " + errno_str);

    It just takes the command-line arguments puts them together and calls system.exec() (which is just 'system' under the hood).

    I then execute the script use the ;EXEC sysop command:

    * Main * ... : ;EXEC
    SY:
    Parameter(s): ?exec dir c:\
    return value: 0

    On Windows 10 x64, it opens a new window and peforms the recursive "dir" operation, as expected. So system.exec() appears to be working just fine. Why it's not working for you or for ticket.js, I don't know (yet).

    digital man

    Synchronet "Real Fact" #83:
    Donations to the Synchronet project are welcome @ http://wiki.synchro.net/donate
    Norco, CA WX: 73.8oF, 56.0% humidity, 10 mph NNW wind, 0.00 inches rain/24hrs --- SBBSecho 3.01-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From TinTino@1:103/705 to Digital Man on Mon Dec 4 07:33:18 2017
    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

    digital man

    /Fidde

    ---
    * Synchronet * Pepzi - Pepzi.se - 1000/1000 MBits
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to TinTino on Tue Oct 3 23:25:00 2017
    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).

    digital man

    This Is Spinal Tap quote #5:
    Nigel Tufnel: Authorities said... best leave it... unsolved.
    Norco, CA WX: 59.5oF, 89.0% humidity, 0 mph S wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.01-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From TinTino@1:103/705 to Digital Man on Mon Dec 4 17:08:10 2017
    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

    /Fidde

    ---
    * Synchronet * Pepzi - Pepzi.se - 1000/1000 MBits
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to TinTino on Wed Oct 4 14:07:24 2017
    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:


    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

    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

    Synchronet "Real Fact" #56:
    Synchronet Terminal Server introduced SecureShell (SSH) support w/v3.14a (2006).
    Norco, CA WX: 82.4oF, 30.0% humidity, 1 mph ESE wind, 0.00 inches rain/24hrs --- SBBSecho 3.01-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)