I have a script that should execute in the background. I have to answer the question as soon as I run bash. How can i do this?
(nohup python script.py lst '<<HERE yes HERE' &)
Heptoc << is multi-line, for example
<<
somescript <<EOF & input EOF
heredoc delimiter must be one on the last line
You can use one line of heredoc with <<< , for example:
<<<
somescript <<<"this coming from stdin" &
Source: https://habr.com/ru/post/973890/More articles:When is a C ++ expression well formed? - c ++How to integrate a PHP and C program? - cGetting strings at extremely high speed - javaRemove PowerShell DSC configuration - powershellCannot resolve java.lang.object type - Eclipse build path does not work - javaphp sorting behavior array_unique - phpHow can I chain promises sequentially using bluebirdjs? - javascriptjQuery append replace image img - jquery([NSAttributedString boundingRectWithSize: options: context:]) method cannot get the correct size in NSTextAttachment - iosHow to create a projection class for a complex case class in slick? - scalaAll Articles