Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant get SCRCPY working on cronjob #5857

Open
WolfRamiO74 opened this issue Feb 19, 2025 · 1 comment
Open

Cant get SCRCPY working on cronjob #5857

WolfRamiO74 opened this issue Feb 19, 2025 · 1 comment

Comments

@WolfRamiO74
Copy link

WolfRamiO74 commented Feb 19, 2025

Hey everyone,

I’m facing a bit of a frustrating issue and was hoping someone here could shed some light on it. I’ve been using scrcpy to mirror my Android screen, and it works perfectly when I run it from a Bash script manually. However, when I set the exact same script to run via a cron job, it fails to launch properly.

My bash script alredy have the correct DISPLAY line on it, this script is the one i call via cronjob.
Other bash script that run X software are working fine as cronjob.

Alredy do a google search and a chat with ChatGPT.

Thanks!

@rom1v
Copy link
Collaborator

rom1v commented Feb 19, 2025

Add &> /tmp/log to your command, so that you can read why it failed afterwards (cat /tmp/log)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants