Created
June 24, 2021 12:55
-
-
Save t3mp-0xCC/df816b9b4865ac1669934d75335a3d33 to your computer and use it in GitHub Desktop.
zoom_auto.sh
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/sh | |
# useful example | |
# $ at 8:50 -f ./zoom_auto.sh "https://applications.zoom.us/lti/..." 90 | |
set -e | |
if [ $# -ne 2 ]; then | |
echo "Usage : ./zoom_auto.sh <zoom link> <class time(min)>" | |
echo "Example : ./zoom_start.sh "https://applications.zoom.us/lti/..." 90" | |
exit | |
fi | |
firefox --display=:0 $1 | |
class_sec=$(($2 * 60)) | |
sleep $class_sec | |
pkill zoom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment