Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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.
Comment

PREVIOUS NEXT
Code Example
Shell :: screen sharung zoom linux x11 
Shell :: serverless invoke sqs 
Shell :: como instalar ext-mbstring en ubuntu 18.04 
Shell :: exit ssh session in shell script 
Shell :: NOPASSWD 
Shell :: lstinputlisting excluse lines 
Shell :: github extension for solidity language 
Shell :: router interface down cisco 
Shell :: how to set up git ssh creds to push 
Shell :: how to create reactportal in gatsby 
Shell :: include nsis plugin in install.nsh 
Shell :: how to know tachyons version 
Shell :: flatpak list themes 
Shell :: reduce directory display linux 
Shell :: remove history from git branch 
Shell :: separate a file by pattern 
Shell :: powershell tab (bash style) 
Shell :: heroku cli container select context folder 
Shell :: The requested URL was not found on this server. Apache/2.4.29 (Ubuntu) Server at 
Shell :: check if lfs compatible 
Shell :: powershell alternative && 
Shell :: Author identity unknown git bash both ang e type 
Shell :: Storage on / folder 
Shell :: modify env var linuc 
Shell :: git messages 
Shell :: fdart string to uri 
Shell :: preserve bash history 
Shell :: 1 exception(s): Exception #0 (MagentoFrameworkExceptionRuntimeException): Type Error occurred when creating object: SignatureLockersCarrierModelCarrierLockersCarrier 
Shell :: how to copy stuff in git ter 
Shell :: what is amplify cli 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =