Best Way to Execute Shell and Paython Scripts In Vertx Java

117 views
Skip to first unread message

ይኸነው ድንበሩ

unread,
Mar 21, 2022, 2:42:51 AM3/21/22
to vert.x
Hi folks,

I would like to know if there is a good way to call/execute bash and python scripts, wait until complete / get notified when completed, and get exit code of the script within a verticle or a handler. (I don't think vertx shell is right for this simple use).

Any pointers and code samples would be appreciated.

Regards.

Julien Ponge

unread,
Mar 21, 2022, 3:25:07 AM3/21/22
to ve...@googlegroups.com
You might look at https://github.com/vietj/childprocess-vertx-ext 

The code hasn’t been updated recently but it shouldn’t be too hard.

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/cdffcbbc-af08-4709-b466-766603e4bbe5n%40googlegroups.com.

ይኸነው ድንበሩ

unread,
Mar 25, 2022, 7:01:55 PM3/25/22
to ve...@googlegroups.com
Thank you, Julien. Do you think I could use Vert.x Shell for this purpose?

Julien Ponge

unread,
Mar 26, 2022, 4:26:20 AM3/26/22
to ve...@googlegroups.com
vertx-shell is not made to launch processes. It’s to embed a shell into an application. 

Le 26 mars 2022 à 00:01, ይኸነው ድንበሩ <zidi...@gmail.com> a écrit :


Reply all
Reply to author
Forward
0 new messages