Horje
shell loop terminating after command Code Example
shell loop terminating after command
The problem is that do_work.sh runs ssh commands and by default ssh reads from stdin which is your input file. As a result, you only see the first line processed, because ssh consumes the rest of the file and your while loop terminates.

To prevent this, pass the -n option to your ssh command to make it read from /dev/null instead of stdin.




Shell

Related
zotero linux chromeos Code Example zotero linux chromeos Code Example
"terminal.integrated.defaultProfile.windows": "Command Prompt", Code Example "terminal.integrated.defaultProfile.windows": "Command Prompt", Code Example
remove packages.sury.org in debian Code Example remove packages.sury.org in debian Code Example
linux list available programs Code Example linux list available programs Code Example
how to install .bin file in linux Code Example how to install .bin file in linux Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7