LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 04-06-2005, 02:49 AM   #1
cranium2004
Member
 
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Rep: Reputation: 30
shell script to execute my c executable


I require a shell script that will execute my C executable file when some condition satisfies in if condition and want to run that script at kernel startups
How to do that?
 
Old 04-06-2005, 03:52 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
use shell scripting... what else can we say? depends wholly on what you want to do as to how you achieve it. not sure what a "kernel startup" is meant to mean. if you mean "on boot" then you'd look at adding to /etc/rc.local on redhat / Fedora

http://www.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
 
Old 04-06-2005, 06:26 AM   #3
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,314

Rep: Reputation: 175Reputation: 175
condition && shell-script
 
  


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
C executable or shell script run in mouse evnt sudhasmyle Programming 0 02-23-2005 07:37 AM
How do you turn an executable into a shell script? Thaidog Linux - Newbie 1 09-20-2004 08:20 PM
shell script won't execute brandnewbie Linux - Newbie 7 08-10-2004 02:30 PM
Make a shell script executable but not readable davholla Linux - Security 5 03-24-2004 04:44 AM
shell script how to execute x2000koh Programming 6 07-29-2003 05:20 PM


All times are GMT -5. The time now is 09:42 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration