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?
在您的路径中放置一个伪造的ssh
,将调用委派给真实的ssh并添加-n
I did:
my_script < /dev/null
and it works just fine.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.