University Project (running a program from within another)
Hi, Im still fairly new to linux, I have a university project using a beagle board and linux, basically I need to be able to take a photo using a webcam when a sensor is activated, for the sensor I am thinking of using GPIO, where I can see myself facing a challenge is in the picture taking bit, can I use a program like cheese webcam booth from within the application I intend writing to do this? if so any ideas on what and where I should start looking for ideas and answers to achieve this? or has anyone got any suggestions on how one could go about a project like this.
Regards soulchyld21 |
In general if you want to execute a program from within a running program you would fork-and-exec; this is what the shell does when you enter a command and hit the carriage return.
Maybe start with the manual pages for fork and the "See Also" pages listed at the bottom of the fork page. If you're interested I can post a mini-shell (written in C) that may point you in the right direction. Hope this helps some. |
Check out the program "motion"
|
Quote:
|
AFAIK he means motion: "Motion is a program that monitors the video signal from cameras. It is able to detect if a significant part of the picture has changed; in other words, it can detect motion."
|
Ah! It's another motion... I see.
|
Quote:
|
All times are GMT -5. The time now is 04:26 AM. |