Tuesday, November 16, 2010

Networking 2 Project - Whats been done so far.

For my networking 2 project I am making a php bot that can be controlled remotely by an android application. So far what I have done is the following.

1. Created a virtual machine that was running Ubuntu 10.10
2. Created the bot PHP script and linked it to MySQL to log all the data, maybe for future use.
3. Migrated to a hardware server.
4. Created an app as proof that the idea can pull information from the database.

What I started today:

1. Started to look into starting the php script from command line like so:
/usr/bin/php /var/www/bot.php &

2. Now that it can be run from command line I am going to make a script that can be run to kill the bot and one that can be run to start the bot all from a web site.

I have decided that the core of this project is that the scripts will reside on the server side and the App will likely just trigger remote scripts. I am doing this because it is really hard to get the Android device to run the necessary things to interface with my scripts.

Also found this which will be helpful for me soon.
"if this is UNIX then you can do an exec() or system() call or something like
`./executethisfile > out.log &` "



No comments:

Post a Comment