Questions tagged [coproc]

19 questions
0
votes
1 answer

Bash: Mutual interaction of processes via pipes

ENVIRONMENT: Linux/Docker, bash version 4.2. QUESTION: server-app accepts commands with an interactive shell. server-app receives commands originating from a client.sh through a pipe. server-app writes to the standard output received by…
Frank-Rene Schäfer
  • 3,182
  • 27
  • 51
0
votes
1 answer

indirect bash command execution not working as expected with coproc

I'm quite new to linux shell scripting and have a question: 1.) why does the command test1="leafpad" && coproc exec "$test1" work in bash (commandline, GNU bash 4.4.12 on a debian derivate linux), but the command test1="coproc" && exec "$test1"…
MI605
  • 3
  • 2
0
votes
0 answers

How to write to a coprocess from a child process of the parent that opened the coprocess

I am using a coprocess inside my main parent process to spawn commands to a shell that otherwise cannot be solved (the shell that I open in the coprocess is not maintained by me and executes the "newgrp" and "exec" commands that stop me from sending…
-1
votes
1 answer

How to start a background shell or kernel (e.g. python), connect to it, and retrieve output

This seemed like something pretty obvious, but after a lot of searching, was not able to find the right search terms to get the answer. Searches for things like "connect to python kernel" brought up only pages and pages of stuff about Jupyter and…
abalter
  • 9,663
  • 17
  • 90
  • 145
1
2