Code: Alles auswählen
...
tty -s && {
# interaktiver Code
}
...
Gruss Cae
Code: Alles auswählen
...
tty -s && {
# interaktiver Code
}
...
If universal surveillance were the answer, lots of us would have moved to the former East Germany. If surveillance cameras were the answer, camera-happy London, with something like 500,000 of them at a cost of $700 million, would be the safest city on the planet.
—Bruce Schneier
Code: Alles auswählen
$ echo foo | ssh user@host some/script
If universal surveillance were the answer, lots of us would have moved to the former East Germany. If surveillance cameras were the answer, camera-happy London, with something like 500,000 of them at a cost of $700 million, would be the safest city on the planet.
—Bruce Schneier
Tada! Tada! Tada!rsi hat geschrieben: Gerade getestet, das -N1 bei dem read prompt ist schuld. Oh man... und ich such da wie blöd herum. Danke für den Hinweis!
Code: Alles auswählen
while read -u3 -r VAR; do
echo "$VAR"
read -p "Naechste Zeile: "
[[ $REPLY != [jJ] ]] && break
done 3< input