LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2012, 07:30 AM   #1
soulchyld21
LQ Newbie
 
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
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
 
Old 01-12-2012, 09:10 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,478

Rep: Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020
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.
 
Old 01-12-2012, 11:23 AM   #3
fnogger
LQ Newbie
 
Registered: Jan 2012
Posts: 4

Rep: Reputation: Disabled
Check out the program "motion"
 
Old 01-12-2012, 11:43 AM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,478

Rep: Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020
Quote:
Originally Posted by fnogger View Post
Check out the program "motion"
He's talking about Linux -- "Motion is a software application produced by Apple Inc. for their Mac OS X operating system." http://en.wikipedia.org/wiki/Motion_%28software%29, isn't it?
 
Old 01-12-2012, 11:51 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
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."
 
Old 01-12-2012, 04:57 PM   #6
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,478

Rep: Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020
Ah! It's another motion... I see.
 
Old 01-12-2012, 05:10 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
Quote:
Originally Posted by tronayne View Post
Ah! It's another motion...
Depends on your POV, right? ;-p
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Open University UK adds Linux Certification to Academic Program LXer Syndicated Linux News 0 03-17-2011 12:10 PM
LXer: EC Council offeres certified hacking program at Manila University. LXer Syndicated Linux News 0 01-14-2007 09:21 AM
LXer: Michigan State University open source project fuels bottom-up ... LXer Syndicated Linux News 0 09-27-2006 03:03 AM
LXer: Empower Technologies(TM) Collaborates With Texas Instruments University Program Worldwide LXer Syndicated Linux News 0 06-26-2006 02:54 PM
ideas for university project jonhewer Programming 25 10-15-2005 10:15 PM


All times are GMT -5. The time now is 01:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration