LinuxQuestions.org
Help answer threads with 0 replies.
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 06-10-2010, 04:42 PM   #1
ankur0921
LQ Newbie
 
Registered: May 2009
Posts: 25

Rep: Reputation: 0
Thumbs up Firing some shell command like ls,mkdir dir-name via kernel module


Hi All,

How can we fire a shell command like ls,./a.out automatically in kernel space via a kernel module ? i.e. replacement of system() function of user space into kernel space.We need to develop a kernel module which can fire some shell command let say "firefox www.google.com" automatically to open google automatically from module.

Thanks in advance..

ankur
 
Old 06-10-2010, 05:02 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

You have several options. I would consider using the "user-mode helper API":

http://www.ibm.com/developerworks/li...er-space-apps/
 
Old 06-11-2010, 04:24 AM   #3
ankur0921
LQ Newbie
 
Registered: May 2009
Posts: 25

Original Poster
Rep: Reputation: 0
Thumbs up Please suggest

Hi Paul,

Thanks for your interest.I need to implement it on the fedora 6,linux 2.6.18 kernel.I think the api described in the provided link, are not available version i have.Do you know some alternative for my requirement ?

ankur
 
  


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
LXer: Kernel Log - Discussions at the 2009 Kernel Summit, FatELF in the firing line, LXer Syndicated Linux News 0 11-04-2009 04:40 PM
Command to display /dir, /dir/sub, /dir/sub/files knockout_artist Linux - Newbie 9 10-25-2007 02:57 PM
About -p Option Of Mkdir Command George2 Linux - Software 4 04-25-2006 06:33 AM
another shell question..., using mkdir haora Linux - Newbie 5 04-06-2005 03:21 PM
mkdir command digitalgravy Linux - General 5 08-12-2004 01:03 PM

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

All times are GMT -5. The time now is 02:26 AM.

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