Skip to content

Instantly share code, notes, and snippets.

@sujitmhj
Last active July 11, 2016 03:23
Show Gist options
  • Save sujitmhj/dcbe1973118b516da3c0af316e274e4e to your computer and use it in GitHub Desktop.
Save sujitmhj/dcbe1973118b516da3c0af316e274e4e to your computer and use it in GitHub Desktop.
If you have Ubuntu based server
1) Run in console of the server
>> crontab -e
2) Then you will see list of cron job in a text editor, you need to add following line at the end
>> * * * * * cd <path to the file directory> && /usr/bin/python channel.py
Example: if your path is /srv/www/public_html/youtube/
Then, you need to append following line and save it:
* * * * * cd /srv/www/public_html/youtube/ && /usr/bin/python channel.py
Then, channels will be created as /srv/www/public_html/youtube/channels.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment