Txt

Byte sized tech know-how.

  • Home
  • About

Author Archives: admin

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
03 Jan

Remove Application in Facebook

Facebook has managed to make this as complicated a a linux command. Hence this entry…

Account(Top Right Corner) > Privacy Settings > Apps and Games > Edit Settings > Apps you use > Edit Settings

admin Posted in internet app, application, facebook, privacy, site 1 Comment
05 Oct

Generate Password

Command to generate a random password…


openssl rand -base64 6
admin Posted in Command Line bash, command, password, rand, random, ssl Leave a comment
29 Oct

Watch for Ubuntu 9.10 Launch

This script will run check for ubuntu launch once every 5 mins and let you know if there is an launch.


while [ 1 ]; do if [ -z "`curl -I "http://cdimage.ubuntu.com/releases/9.10/release/"|grep "404"`" ]; then kdialog --msgbox "9.10 Released"; exit; fi; sleep 300;  done
admin Posted in Code, Command Line, Linux bash, command, curl, launch, Linux, script, shell, ubuntu 2 Comments
21 Aug

Command to Find Current Ubuntu Version

Run this command to find the installed version of Ubuntu…


cat /etc/lsb-release
admin Posted in Command Line, Linux command, Linux, release, ubuntu, version 7 Comments
25 Jul

top in Batch Mode

Run top in batch mode


top -b -d 10 -n 3
admin Posted in Command Line, Linux batch, cli, command, filler, Linux, top Leave a comment
22 Jul

Trasfer over the network

Transfer stdin and stdout to and from machines over the network


ssh remote_machine 'cat - > file' < file
admin Posted in Command Line, Linux cat, filler, network, shellfu, ssh, stdin Leave a comment
07 Jul

Add Line Numbers

Use this command to add line numbers to a text file…


sed = filename.txt | sed 'N;s/\n/\t/' > filename_number.txt
admin Posted in Command Line, Linux command, line, Linux, number, numbering, sed, shellfu 3 Comments
06 Jul

Install Package List

Install a list of packages from a text file.


cat packages.txt | xargs apt-get install
admin Posted in Command Line, Linux command, file, install, Linux, list, package, text Leave a comment

Post navigation

← Older posts
Newer posts →

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
↑