Tuesday, October 2, 2012

Running Shell script to run Django shell and then scp files to server...

I have a script in Django that I run manually 'python manage.py shell' and then 'from sports import scores' and it goes out and pulls scores from a couple URLs, modifies the data, and saves it to a SQLite database. Once that process runs I manually scp my files to a server...

What I'd like to do is write a shell script that I can run on a cron to run the process at set periods, both actions.

How would I do this so it properly runs the Django shell script?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/yz98mwN3j_EJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment