Code Monkey home page Code Monkey logo

Comments (4)

dathtd119 avatar dathtd119 commented on June 12, 2024

I tried that cvemap with this for help page and it run smoothly, but not other function.

shell.exec(`${CVEMAP_DIR} -h`)

The CVEMAP output when performing something is output line by line, is that an issue with shelljs?

from shelljs.

nfischer avatar nfischer commented on June 12, 2024

shell.exec() waits for the process to finish, then it returns all the output. I think shell.exec() can also print output line by line, but it won't terminate until the command you're running finishes.

If that's not what you want, you can try using shell.exec() in async mode. Check out the README for how to do that.

from shelljs.

dathtd119 avatar dathtd119 commented on June 12, 2024

I changed to spawnSync , using it directly from 'child_process', and it just worked, Imma perform it with Shelljs again in the future.

Also this error was done, but not using ShellJS, should I close this issue?

from shelljs.

nfischer avatar nfischer commented on June 12, 2024

Closing as not reproducible. Let me know if you switch back to shell.exec() and see this error.

from shelljs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.