This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Wait until the test condition is true or a timeout occurs. Useful for waiting | |
* on a server response or for a ui change (fadeIn, etc.) to occur. | |
* | |
* @param testFx javascript condition that evaluates to a boolean, | |
* it can be passed in as a string (e.g.: "1 == 1" or "$('#bar').is(':visible')" or | |
* as a callback function. | |
* @param onReady what to do when testFx condition is fulfilled, | |
* it can be passed in as a string (e.g.: "1 == 1" or "$('#bar').is(':visible')" or | |
* as a callback function. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#crontab | |
#for crontab use always full path or EXPORT | |
#crontabline : */15 * * * * /home/user_name/bin/stream_ordner/toot_a_photostream.sh >/home/user_name/bin/stream_ordner/error.txt 2>&1 | |
fullpath_dir="/home/foo/bin/stream" | |
fullpath_toot="/usr/bin/toot" | |
mkdir -p $fullpath_dir/"$(date +%m_%d_%y)" | |
source_url="https://webcams.foo_bar.de/Webcam1/webcam/current.jpg" | |
toottext="Mein Text $(date +%H:%M) . Alle 15 Minuten ein Schnappschuss!" |