• exec_int for JavaScript

    From Adam B to All on Tuesday, January 20, 2009 22:12:28
    Hello everyone,

    I am trying to do everything in JavaScript, but have ran into a snag. What is the equivalent for Baja's exec_int, but for JavaScript?

    Thanks!

    Adam B.
  • From Deuce@SYNCNIX to Adam B on Wednesday, January 21, 2009 12:52:19
    Re: exec_int for JavaScript
    By: Adam B to All on Tue Jan 20 2009 10:12 pm

    I am trying to do everything in JavaScript, but have ran into a snag. What is the equivalent for Baja's exec_int, but for JavaScript?

    I would need to see the context to give something better, but an *exact* translation is:
    bbs.exec(bbs.cmdstr("cmdstr", path, str), EX_OUTR|EX_INR|EX_OUTL);

    If you don't use command line specifiers, you don't need to include the bbs.cmdstr() call so:
    bbs.exec("command", EX_OUTR|EX_INR|EX_OUTL);

    Odds are VERY good that EX_OUTL doesn't matter either so you can leave that off as well:
    bbs.exec("command", EX_OUTR|EX_INR);

    ---
    Synchronet - Jump on the Web 0.2 bandwagon!

    ---
    ■ Synchronet ■ My Brand-New BBS (All the cool SysOps run STOCK!)