What it does is opens the terminal,asks for the number then the sms and it is sent...
Now i want the text in that sms to be copied to a new file everytime.
for example like text1.txt then text2.txt and it goes on incrementing every time.
If its not possible from php script then may be i can rite a shell script that first executes the php script and then makes the new file with some command and copies the text in the sms into that file.
I want to know that command( i guess pipelining is also used) and also,how to make the file name different everytime?
I don't know shell scripting.
but in a normal programing language,like c/c++/java,the way would be a loop in which a variable is incremented everytime and then passed as a parameter to the name..is anything like this possible in shell scripting?