Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Run process from extension

Community Beginner ,
Mar 28, 2018 Mar 28, 2018

Hi,

Is this possible to run a JavaScript script (NodeJs) as a background process from a CEP extension?

At the moment, I can run a NodeJs script in the background but only if Node is already installed on the target machine.

I would like to be able to spawn the same Node process used by Adobe instead of using an external Node.

1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Mar 29, 2018 Mar 29, 2018
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 04, 2018 Apr 04, 2018

Hi Trevor,

Thank you. I already know how to spawn a child process from a regular Node executable (as I have been using Node for quite some time). However, I noticed that 'spawning' did not seem to work with the Node used by the Adobe extension (CEP_HTMLsomething) which I believe is a modified Node combined with Chromium (or the other way around).

I will try again, but all my attempts gave me no result so far. Maybe there are some limitations since there is a binding between Node and Chromium?

I tried with the --mixed-context / --separate-context options (thinking I would have access to an unbounded NodeJs with the latter) but still failing.

I eventually did find a not great but working workaround.

Thank you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 21, 2020 Feb 21, 2020
LATEST

Hey did you find something about this issue ?

I've been trying to fork, spawn a process also and it is not working.

I've been trying different node workers librairies but didnt work either.

I'm guessing they are not allowing this for performance reason...

Would be interested in knowing what working workaround did you find ?

Thanks

Mat

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines