0

I'm automating a few things where I work regarding communication using WhatsApp. I have implemented a few scripts using Python (pywhatkit and MySQLdb) that acess my work's database and sends out a few text messages. The thing is, we currently have a local CentOS server up and running and I don't know how to make my script run on that. Like, I was told that the server had no graphical interface, and my script basically opens Firefox and sends texts every once in a while.

How can I make this work from this server? Is there another alternative? This will be used to send a couple of texts every day, so It won't be CPU intensive. Best use scenario would be to run this script every day at a scheduled time, and that's it.

martineau
  • 119,623
  • 25
  • 170
  • 301

1 Answers1

0

You can use crontab to run script once per day.

Also you can open headless Firefox on CentOS server. Here good explanation how to do it.

Yevhen Bondar
  • 4,357
  • 1
  • 11
  • 31