You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using "terminal" or even "remote terminal" (ssh) in macOS works just fine with chrome-cli.
All you need to do is just click on "OK" when some privacy notification windows pops up.
Then some entries will just appear in "Privacy" -> "Automation", indicating that some apps are allowed to access chrome's data directories.
But when I try to add some script regarding "chrome-cli" in "crontab".
(For example, just "chrome-cli chrome version" as simple as it is)
It will just print (null) on screen or file.
Is there any workaround for this?
I searched on the internet, unfortunately we can never add/remove apps manually in "Privacy" -> "Automation" configuration.
What I guess is that all I need is adding "cron" in "Automation".
The text was updated successfully, but these errors were encountered:
shooter556
changed the title
chrome-cli in crontab may not work properly
chrome-cli in crontab of MacOS may not work properly
Nov 25, 2022
As a workaround, add a LaunchAgent (that runs periodically) to dump the chrome-cli output to a file and let "cron" job read from this file. Have tried invoking "chrome-cli" from LaunchAgent is working fine.
Using "terminal" or even "remote terminal" (ssh) in macOS works just fine with chrome-cli.
All you need to do is just click on "OK" when some privacy notification windows pops up.
Then some entries will just appear in "Privacy" -> "Automation", indicating that some apps are allowed to access chrome's data directories.
But when I try to add some script regarding "chrome-cli" in "crontab".
(For example, just "chrome-cli chrome version" as simple as it is)
It will just print (null) on screen or file.
Is there any workaround for this?
I searched on the internet, unfortunately we can never add/remove apps manually in "Privacy" -> "Automation" configuration.
What I guess is that all I need is adding "cron" in "Automation".
The text was updated successfully, but these errors were encountered: