shell loop terminating after command
Shell
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.
Also in Shell:
- Title
- boolean constants in bash
- Category
- Shell
- Title
- powershell add element to array
- Category
- Shell
- Title
- pyinstaller statsmodels
- Category
- Shell
- Title
- 'node-sass' is not recognized as an internal or external command,
- Category
- Shell
- Title
- git delete branch
- Category
- Shell
- Title
- cosmicjs
- Category
- Shell
- Title
- pygame not installing in ubuntu 20.04
- Category
- Shell
- Title
- git unstage file for commit
- Category
- Shell
- Title
- shared folder virtualbox ubuntu
- Category
- Shell
- Title
- git remove folder form past all commits
- Category
- Shell
- Title
- gnome-shell turn off
- Category
- Shell
- Title
- linux install pip
- Category
- Shell
- Title
- bash endless loop
- Category
- Shell
- Title
- CommandNotFoundError: Your shell has not been properly
- Category
- Shell
- Title
- git delete repository command line
- Category
- Shell
- Title
- docker getting-started
- Category
- Shell
- Title
- shutdown timer windows 10
- Category
- Shell
- Title
- check disk space linux
- Category
- Shell
- Title
- how to reslove Jira Software is licensed but not currently installed
- Category
- Shell
- Title
- git clean cache
- Category
- Shell
- Title
- too many security failures vnc
- Category
- Shell
- Title
- git init
- Category
- Shell
- Title
- ubuntu ram type
- Category
- Shell
- Title
- install telnet windows server 2012
- Category
- Shell
- Title
- linux set environment variable
- Category
- Shell
- Title
- ubuntu logout
- Category
- Shell
- Title
- add passphrase to ssh agent?
- Category
- Shell
- Title
- install node js ubuntu
- Category
- Shell
- Title
- how to install cab file in ubuntu
- Category
- Shell
- Title
- rec: command not found
- Category
- Shell
- Title
- shell copy
- Category
- Shell
- Title
- powershell get all computers in ou
- Category
- Shell
- Title
- installing rspec gemfile
- Category
- Shell
- Title
- how to import microsoft.online sharepoint powershell
- Category
- Shell
- Title
- zip command in linux
- Category
- Shell
- Title
- remotelog muirey03 github
- Category
- Shell
- Title
- git command to create a branch
- Category
- Shell
- Title
- chocolatey installation
- Category
- Shell
- Title
- show all processes linux
- Category
- Shell
- Title
- netstat column headers
- Category
- Shell
- Title
- install boostrap react
- Category
- Shell
- Title
- check if kubernetes is running
- Category
- Shell
- Title
- job('DSL-Tutorial-1-Test') { scm { git('git://github.com/quidryan/aws-sdk-test.git') } triggers { scm('H/15 * * * *') } steps { maven('-e clean test') } }
- Category
- Shell
- Title
- install redux
- Category
- Shell
- Title
- zip entire directory ubuntu
- Category
- Shell
- Title
- git push
- Category
- Shell
- Title
- find exclude hidden files
- Category
- Shell
- Title
- create github repo with curl
- Category
- Shell
- Title
- .gitignore
- Category
- Shell
- Title
- gitlab docker runner
- Category
- Shell
- Title
- netstat check port
- Category
- Shell
- Title
- linux add to path
- Category
- Shell
- Title
- install webpack
- Category
- Shell
- Title
- linux install node
- Category
- Shell
- Title
- what does git fetch do
- Category
- Shell
- Title
- git set upstream
- Category
- Shell
- Title
- get local node version
- Category
- Shell
- Title
- vieuw the MOTD linux
- Category
- Shell
- Title
- Realtek RTL8812BU Network WiFi Adapter kali linux driver
- Category
- Shell
- Title
- check installed packages apt-get
- Category
- Shell
- Title
- installing react router dom with yarn
- Category
- Shell
- Title
- netstat install
- Category
- Shell
- Title
- git cherry pick commit
- Category
- Shell
- Title
- find the size of file in linux
- Category
- Shell
- Title
- kill port ubuntu
- Category
- Shell
- Title
- how to install emotion in gatsby
- Category
- Shell
- Title
- search tag git
- Category
- Shell
- Title
- FATAL module ucvideo not found
- Category
- Shell
- Title
- [ErrorException] file_put_contents(./composer.json): failed to open stream: Permission denie d
- Category
- Shell
- Title
- install vim mac
- Category
- Shell
- Title
- testing cors
- Category
- Shell
- Title
- install wpscan in linux server globally
- Category
- Shell
- Title
- find flutter version
- Category
- Shell
- Title
- Model class django.contrib.sites.models.Site doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS
- Category
- Shell
- Title
- git reset one file
- Category
- Shell
- Title
- linux convert png favicon
- Category
- Shell
- Title
- unzip a tar.gz file in linux
- Category
- Shell
- Title
- ssh ubuntu
- Category
- Shell
- Title
- git second commit
- Category
- Shell
- Title
- rithm school github
- Category
- Shell
- Title
- how to upload on github with command
- Category
- Shell
- Title
- release tag github
- Category
- Shell
- Title
- linux c++ from console
- Category
- Shell
- Title
- powershell get arguments
- Category
- Shell
- Title
- generate ssh key paitr
- Category
- Shell
- Title
- grep cheat sheet
- Category
- Shell
- Title
- how to commit changes in git command
- Category
- Shell
- Title
- install pytorch cuda 10
- Category
- Shell
- Title
- htaccess secure
- Category
- Shell
- Title
- check upstream branch git
- Category
- Shell
- Title
- how to remove git from project
- Category
- Shell
- Title
- The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again.
- Category
- Shell
- Title
- linux grep
- Category
- Shell
- Title
- install docker debain
- Category
- Shell
- Title
- grep and
- Category
- Shell
- Title
- django secrets
- Category
- Shell
- Title
- find out a branch a parent branch git
- Category
- Shell
- Title
- git add tag
- Category
- Shell
- Title
- linux port forward ssh
- Category
- Shell
- Title
- how to open emulator in vs code
- Category
- Shell