# Passing multiple commands delayed to same process / PID

**URL:** <https://discourse.nodered.org/t/passing-multiple-commands-delayed-to-same-process-pid/9909>\
**Category:** General\
**Created:** [8 April 2019 20:57 UTC](https://discourse.nodered.org/t/passing-multiple-commands-delayed-to-same-process-pid/9909 "2019-04-08T20:57:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [8 April 2019 21:48 UTC](https://discourse.nodered.org/t/passing-multiple-commands-delayed-to-same-process-pid/9909/2 "2019-04-08T21:48:19Z")

</div>

I would either use exec (in spawn mode) to call a complete bash script that did it all eg see [https://stackoverflow.com/questions/7013137/automating-telnet-session-using-bash-scripts](https://stackoverflow.com/questions/7013137/automating-telnet-session-using-bash-scripts)

Or try the node red node daemon which uses the inputort to accept msgs so you could send them suitably spaced.

---

_[View the full topic](https://discourse.nodered.org/t/passing-multiple-commands-delayed-to-same-process-pid/9909)._
