Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: sms

11 Aug

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.

admin Posted in Command Line, Linux command, file, Linux, sms, text 2 Comments
11 Aug

Send Text Once Every 15 Mins

Command to send a text to any phone once every 15 mins.


while [ 1 ]; do sms NUMBER_GOES_HERE "$(date '+%I:%M %p') Hey Anju. Still awake?"; sleep 15m; done

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

admin Posted in Command Line, Linux command, Linux, sleep, sms, text, while Leave a comment

Post navigation

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑