Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support async call on windows #83

Open
Hi-Alan opened this issue Aug 29, 2022 · 2 comments
Open

support async call on windows #83

Hi-Alan opened this issue Aug 29, 2022 · 2 comments

Comments

@Hi-Alan
Copy link

Hi-Alan commented Aug 29, 2022

While a long time running task be dispatched with a flag such as #async on windows, shell2http return immediately.

set chrome="C:\Progra~2\Google\Chrome\Application\chrome.exe"
D:\bin\shell2http\shell2http -host=127.0.0.1 -port=8081 -no-index -log=access.log -form ^
  /html2pdf#async  "echo OK && %chrome% --headless --disable-gpu --print-to-pdf-no-header --print-to-pdf=%%v_file%% %%v_url%%"
@msoap
Copy link
Owner

msoap commented Aug 29, 2022

I think, it's a duplicate of #70

@Hi-Alan
Copy link
Author

Hi-Alan commented Aug 31, 2022

Thanks for your works, msoap.

There is no command like nohup on windows. Requests will be blocked like this:

shell2http -port=8081 /longrun "start /b ping -n 5 127.0.0.1 >> D:\x.log"
shell2http -port=8081 /longrun "cmd /c ping -n 5 127.0.0.1 >> D:\x.log"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants