Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: JPSeo
  • Order by date
  1. JPSeo

    --How to implement req.body.param validation

    Hello: am trying to validate the value of MAXDEPTH below. if it is greater than x or less than y, execute the function updateMaxdepth(). Otherwise print error saying input value out of bounds. So I have inserted the if/else block below but its not working. It is at the borrom of the following...
  2. JPSeo

    Another cjhild_process.exec issue with complex shell command

    Hello: Trying to run the following code but the arrays is not getting populated. bash.cmd_4 works but bash.cmd_1 returns nothing. I am guessing I am missing some delimiters. Pls advise, Thank you !! var array_id = new Array(); app.get('/qmgrs', function(req, res) { var QMGR =...
  3. JPSeo

    How to pass var to the shell script

    This is fixed
  4. JPSeo

    How to pass var to the shell script

    Hello: Newbie question here: Trying to pass a var to the child_process shell command. Not sure what should be proper syntax. Thnx const exec = require('child_process').exec app.listen(port); console.log('Server started! At http://10.130.16.65:' + port); function execute(command) {...
  5. JPSeo

    simple SyntaxError: missing ) after argument list error

    Thak you very much..
  6. JPSeo

    simple SyntaxError: missing ) after argument list error

    Heloo Experts: I am getting the "SyntaxError: missing ) after argument list" error for the code below: ========================================== function execute(command) { const exec = require('child_process').exec exec(command, (err, stdout, stderr) => { process.stdout.write(stdout) }) }...

Part and Inventory Search

Back
Top