Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 06-10-2010, 05:42 PM   #1
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" automatically to open google automatically from module.

Thanks in advance..

Old 06-10-2010, 06:02 PM   #2
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":
Old 06-11-2010, 05:24 AM   #3
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 ?



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

All times are GMT -5. The time now is 05:45 PM.

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