Bu şekilde ssh ile bir script çalıştırıyorum:
ssh user@host 'bash -s' < ./script.sh
Sorun şu ki, bazen elde ettiğim çıktı doğru değil, satırlar karışık.
Benim durumumda script çok yeni değil, normal çıktı şöyle bir şey:
...
Note: Ignoring non-mail file: foobar
Note: Ignoring non-mail file: foobar
Note: Ignoring non-mail file: foobar
Processed 93 total files in almost no time.
No new mail.
ama bazen çıktı şöyle bir şeydir:
...
Note: Ignoring non-mail file: foobar
Note: Ignoring non-mail file: foobar
Processed 93 total files in almost no time.
No new mail.
Note: Ignoring non-mail file: foobar
Note: Ignoring non-mail file: foobar
ve elbette bu gerçek çıktı değil, notmuch newkomut ile biter, No new mailancak ssh ile satır satır değil çıktı alır gibi.
Bu neden oldu?