This is just something i threw together quickly for someone on the BiteSMS forums. To do this you will need a Jailbroken device and BiteSMS installed. Trial or full, it does not really matter.
BiteSMS allows the user to send messages though SSH which means it can be coded into scripts which is what i will be showing you in this post. The following code will loop though 5 times and “do” or run the BiteSMS send command to the number 07900000001.
for i in $(seq 5)
do /Applications/biteSMS.app/biteSMS -send -carrier 07900000001 "Test Message $i"
You can change the number, message and the amount of times it runs by editing the script.
Please remember you MUST write this in Linux or convert the file to a UNIX format. This is generally done by using the DOS2UNIX command but as the iPhone does not have this installed you will need to find a converter or use the file attached to this post.
Upload this file as “test.sh” (you can name the file whatever you please but ensure it has the .sh extension) to an execuable area on the iPhone file system. I used the following location, “/private/var/mobile”. Once this is done, you must log in to your iPhone via an SSH client and run the following command, “/private/var/mobile/test.sh”.
If you get a access denied error then please keep reading.
Umars-iPhone:~ root# /private/var/mobile/test.sh
-sh: /private/var/mobile/test.sh: Permission denied
This is a simple problem to solve. All this means is that the permissions on the file must be changed and providing you have been following this guide carefully, you can simply copy and paste the following command, “chmod 755 /private/var/mobile/test.sh”. If you used your own path then please use the chmod command but on your own file. This can also be done via FileZilla.
Download: http://www.umarsalim.com/wp-content/uploads/2011/10/test.txt (please remember to save this as test.sh and not test.txt)