Hi,
I do it within my programs, but I would suggest looking at the man page for
"system"  I believe it says that it can be unreliable in linux when you are
a super user.  So there is a code snipet there that you can make your own
"my_system" routine that uses execl (I believe -  I am on my windows machine
too).  If you need an example let me know.  With my embedded machine code I
start user applications and insert and remove modules and control what I
need to do over the ethernet.

Janet Estabridis


-----Original Message-----
From: Heinz Haeberle
To: Frederic Cazenave; [EMAIL PROTECTED]
Sent: 3/6/01 11:39 AM
Subject: Re: [rtl] Modules

Either use lsmod within a system call or check /proc/modules (correct
spot?)
insmod will insert the module. Just again by a system call
(....system("/<path>/insmod <module>");....)

Unfortunately I am on windows so I can't proof it.

Heinz


----- Original Message -----
From: "Frederic Cazenave" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 06, 2001 2:20 PM
Subject: [rtl] Modules


> Hi,
>
> is there a way to check from a user space program if a module is
> installed or not ?
> And if my module is mot installed how to do it inside the program ?
>
> Fred
>
> --
>  _________________________________________________________
> |                                                          |
> |               Frederic CAZENAVE                          |
> |    _/\_  /^=  McGill Radar                               |
> | \_/    \//    Box 198, MacDonald College                 |
> |   | /-\ |     Ste Anne de Bellevue                       |
> |   ||   ||     Quebec, Canada   H9X 3V9                   |
> |               Tel (514) 398 7733 fax (514) 398 7755      |
> |               mailto:[EMAIL PROTECTED]       |
> |               http://www.mpl.orstom.fr/hydrologie/catch/ |
> |__________________________________________________________|
>
>
>
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
>

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to