Похожие чаты

Writing a script to pull data from remote hosts.. There's

a test that tries to log in to the user i made for it. But it seems to be positive all the time.. I'm probably missing something obvious 🤔

ssh -q ${backupuser}@{$sourcehost} exit
if [ $? -ne 0 ]
then
error logging here
fi

2 ответов

8 просмотров
Wout- Автор вопроса

Oh god. Nevermind. How did I miss that lmao

Exit is the command you're testing against

Похожие вопросы

Обсуждают сегодня

Карта сайта