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

how to run cronjob for fetching attendance #60

Open
01umarkhan opened this issue Mar 5, 2024 · 0 comments
Open

how to run cronjob for fetching attendance #60

01umarkhan opened this issue Mar 5, 2024 · 0 comments

Comments

@01umarkhan
Copy link

01umarkhan commented Mar 5, 2024

may I know how to run cronjob for fetching attendance every minute?

I tried as below

crontab -l
* * * * * cd /home/username/frappe-bench/biometric-attendance-sync-tool && source venv/bin/activate && python3 erpnext_sync.py 

but its not working.

Update: It's working now.

umar@PC:~$ crontab -l
#!/usr/bin/python3
* * * * * /usr/bin/python3 -c 'from erpnext_sync import main; main()'

Now my question is about schedule time, what is correct way to run this script every minute or @reboot?

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

1 participant