crontab bash tests
Ralf Mardorf
kde.lists at yahoo.com
Tue Sep 26 11:55:25 UTC 2023
Btw. what happens if the "touch" command does fail?
If "touch" fails, then bash does continues with the "rm" command!
Could there be race condition? Something writes to the file and "touch"
isn't allowed to access the file at the same time?
• rocketmouse at archlinux ~/Desktop
$ [[ $(true)$? -eq 0 ]] && false || echo "Hello Kitty"
Hello Kitty
• rocketmouse at archlinux ~/Desktop
$ [[ $(true)$? -eq 0 ]] && echo "Hello, " || echo "Hello Kitty"
Hello,
• rocketmouse at archlinux ~/Desktop
$ [[ $(false)$? -eq 0 ]] && echo "Hello, " || echo "Hello Kitty"
Hello Kitty
More information about the ubuntu-users
mailing list