Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
1 question with no upvoted or accepted answers
0 votes
2 answers
2k views

Exclude the output from ssh and only log the error if found

typeset -f | sshpass -e ssh -o StrictHostKeyChecking=no user@${IPADDRESS} " $(cat); IFERROR=$(checkscript); echo "$IFERROR"" > ${SSHTEMPFILE} 2>&1 This line...I can't exclude the "...
Vianymoon's user avatar