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

Bug Report: Doesn't work from cron in Linux! #1864

Open
kiwiG opened this issue Dec 22, 2024 · 0 comments
Open

Bug Report: Doesn't work from cron in Linux! #1864

kiwiG opened this issue Dec 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working untriaged A label Indicating this Issue has not yet been initiated.

Comments

@kiwiG
Copy link

kiwiG commented Dec 22, 2024

Bug Behavior

This line in batch file bsky.sh...

/home/user/.pub-cache/bin/bsky post --text="Hello, Bluesky" --identifier='USER.bsky.social' --password='PASSWORD'

...posts the message when the job is run from a terminal, but if I add bsky.sh to a cron job, it seems to run okay but doesn't actually post the message.

The cron log shows it ran:
Dec 22 20:14:01 mordac CRON[977343]: (user) CMD (/home/user/bskytest.sh)
But there's nothing on Bluesky.

Expected Behavior

The batch file should run from cron.

Error Log

None. It seems to run from cron but never actually posts to Bluesky.

Step to Reproduce

  • Create a batch file containing the line above (with your credentials, obviously).
  • Make it executable and run it.
  • The message "Hello, Bluesky" will appear on your session.
  • Now set the batch file to run from cron.
  • When the target time is reached it seems to run okay but doesn't actually post to Bluesky
@kiwiG kiwiG added bug Something isn't working untriaged A label Indicating this Issue has not yet been initiated. labels Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged A label Indicating this Issue has not yet been initiated.
Projects
None yet
Development

No branches or pull requests

2 participants