LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-02-2007, 02:35 AM   #1
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Rep: Reputation: 30
how do you import bash script to a c++ program?


hello there, im just curious, is there a way that a bash script can be imported to a c++ program, because i want to create a program in c++ that will enable to open the hdd(dvd-rom) when a user will supply a correct password...then will close after 15 seconds...need your help...thank you..
 
Old 05-02-2007, 02:54 AM   #2
vazrik
LQ Newbie
 
Registered: Jan 2007
Location: Southern California
Distribution: debian and fedora
Posts: 5

Rep: Reputation: 0
I am not sure what you mean by "import." If you like to execute a shell script from your c code, use system("yourscript");
 
Old 05-02-2007, 03:28 AM   #3
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Quote:
Originally Posted by vazrik
I am not sure what you mean by "import." If you like to execute a shell script from your c code, use system("yourscript");
yes, to execute a shell script to a c++ program..
 
  


Reply



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
Bash Script - How do I make sure my program is still running? nro Linux - Newbie 4 08-28-2005 01:57 PM
Asking a C program to call a bash script sceadu Programming 4 07-28-2005 08:52 PM
Import sys ?bash: import: command not found joirnange Linux - Newbie 4 12-28-2004 10:33 PM
How can I get the computer to boot up and run a program/game w/ bash script or C++? DaMan101 Programming 5 04-11-2004 03:22 PM
grab - Simply a useless bash script to take a screen shot; Required command: import micxz Programming 2 10-08-2003 07:59 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:07 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
Open Source Consulting | Domain Registration