In my bash loop over a list of some servers the script exits after execution a perl script with ssh

Pawel P.

I have a problem similiar to this one:

in my bash loop over a list of some servers, if the ssh connects the bash script exits

Unfortunately ssh is called from a perl script I can't edit (so I won't be able to add -n to ssh commad).

What else could be done?

Pawel P.

I did:

my_script < /dev/null  

and it works just fine.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Script to change password on linux servers over ssh

bash script execute commands after ssh

bash script exits unexpectedly after returning from function

ssh in bash script exits loop

Randomly loop over days in bash-script

Capture output of bash script over ssh within script

Writing a bash script, how do I stop my session from exiting when my script exits?

Loop over directories and act on files in bash script

List Add() method doest seem to work in my script. Count of elements in list is 0 after i add some of them in forach loop

Running a bash script after some containers are initialized

Bash script nohup execution

SSH exits after quit case in bash script

Why does ssh abort my bash script?

Parallel execution of bash script

View Script Over SSH?

Issue with ':' character in Bash script over SSH

perl: replace string over ssh from a bash script

Tmux over SSH in script

Shell script execution on multiple servers

bash script exits unexpectedly when rebooting remote server through ssh

Assigning variables inside remote shell script execution over SSH

Continue script execution after exec in bash

Bash script to SSH to multiple servers and continue if login failed

BASH Script hangs after some processing on Ubuntu

How To Create "Publish Over SSH Plugin" Config (Add SSH Servers,Key etc) through pipeline script In Jenkins

bash script exits after reading first line of file

shell script to run commands over SSH on multiple remote servers

ssh remote execution in bash script inside variable

SSH Remote Code Execution Script over Jumphost (Nested Quotes)