rhiever / TwitterFollowBot

A Python bot that automates several actions on Twitter, such as following users and favoriting tweets.
GNU General Public License v3.0
1.31k stars 447 forks source link

Can't run in task scheduler? #90

Open steffanjensen opened 8 years ago

steffanjensen commented 8 years ago

Sorry for asking so many stupid questions.

I have the bot on a server when i run in task schedule the bot does not work, if run the bot from cmd on my server it works perfect.

I have many bots running on my server, and all the others are working fine with task scheduler.. The server is a synology..

Just asking maybe you do not know the answer, it's just weird that it works perfect on the server when i run from cmd.

rhiever commented 8 years ago

That is quite odd! Do you have a way of capturing the output of the scheduled task? Perhaps a useful error will be there.

You might check to make sure that any files you're pointing the bot to are pointed to with an absolute path rather than a relative path. Usually scheduled tasks run from the root directory rather than where you may be running it on the command line.