Timeline for Periodically transfer files from two remote servers to single host using shell script
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 13, 2022 at 14:34 | comment | added | ilkkachu |
ok, I tried that on Debian and a few different versions of Bash, and it only works if I explicitly enable set -o history and set -o histexpand/set -H. Both are off by default, but I have no idea if that's changeable at compile-time, or if Ubuntu 16.04 in particular does something different there. In any case, I'm not exactly sure what you're asking about here.
|
|
| May 13, 2022 at 13:16 | comment | added | earl |
@ilkkachu while [ $? -ne 0 ]; do !!; done does work for me. Using Ubuntu 16.04
|
|
| May 13, 2022 at 13:07 | vote | accept | earl | ||
| May 13, 2022 at 8:20 | history | edited | AdminBee | CC BY-SA 4.0 |
Minor formatting
|
| May 12, 2022 at 21:49 | comment | added | ilkkachu | Actually, I'm not sure what you're asking at all. You mention that sleeping a constant amount of time might end up having the exact time drift, but you seem to be okay with that. I'm not sure what you mean with the "(sudo)" in parenthesis, though. | |
| May 12, 2022 at 21:44 | comment | added | ilkkachu |
while [ $? -ne 0 ]; do !!; done -- are you relying on history expansion here? Does it work? Because Bash's manual says it's disabled in interactive shells by default, but I can't seem get it manually enabled either...
|
|
| May 12, 2022 at 21:29 | answer | added | Chris Davies | timeline score: 1 | |
| S May 12, 2022 at 20:58 | review | First questions | |||
| May 13, 2022 at 8:20 | |||||
| S May 12, 2022 at 20:58 | history | asked | earl | CC BY-SA 4.0 |