Sample Header Ad - 728x90

zoom meeting with cron

1 vote
1 answer
154 views
My zoom class teacher doesn't give us a link with a hashed password and I am using [this](https://github.com/tmonfre/zoom-cli) to open zoom from command line. (**EDIT:** Later I knew that normal zoom command open a link with non-hashed password.) Now I am even sick of typing the command in a terminal, so that I want to make it a cron job. My script (/home/taro/Scripts/i_hate_cron.sh)is like:
#!/bin/bash
export DISPLAY=:0
export BROWSER=/usr/bin/google-chrome-stable
/usr/bin/pyzoom class101
Here, pyzoom is a symbolic link to the afore-hyperlinked python program that opens a zoom meeting with automatically filling a meeting ID and a password. And the systemctl status cronie.service 's output is
4:52 yamada CROND: pam_unix(crond:session): session closed for user taro
Feb 18 16:25:01 yamada crond: pam_unix(crond:session): session opened for user taro(uid=1000) by (uid=0)
Feb 18 16:25:01 yamada CROND: (taro) CMD (/home/taro/Scripts/i_hate_cron.sh)
Feb 18 16:25:52 yamada CROND: (taro) CMDEND (/home/taro/Scripts/i_hate_cron.sh)
Feb 18 16:25:52 yamada CROND: pam_unix(crond:session): session closed for user taro
crond didn't give me the zoom window:< Using xvfb and taking a screenshot of it, I confirmed that this cron job works fine with it, but I don't know how to change from outputting to display :99, which is the default of xvfb, to :0. What should I do to make zoom open automatically with cron? (Actually I prefer systemd/Timer, since I am using Arch Linux. So I also welcome answers adopting systemd)
Asked by Taro (111 rep)
Feb 18, 2023, 07:41 AM
Last activity: Jan 15, 2025, 10:42 PM