Send One Line From a Text File as as SMS Every 10 Mins

This command will send a line from a given text file one every 10 mins as an SMS to a given number.


i=1; while [ 1 ]; do sms INSERT_PHONE_NUMBER "(cat "/home/binnyva/sms.txt"|head -ni|tail -n1)"; sleep 10m; i=(expri + 1); done

Script calls the command ‘sms’ – you can define that command however you want. In my case, its a variation of this script.

Author: Binny V A
A philosopher programmer who specializes in backend development and stoicism.

2 thoughts on “Send One Line From a Text File as as SMS Every 10 Mins

  1. hi
    i have tried but this did’t worked, which is the package i supposed to install ,is it “sms-pl”.. i have one more question…how it work…please reply

Leave a Reply

Your email address will not be published. Required fields are marked *