Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-23-2004, 01:30 AM   #1
Registered: Apr 2003
Location: Singapore
Distribution: Slackware32/64, Ubuntu, Fedora, RHEL
Posts: 138

Rep: Reputation: 15
rmmod and cron issue?

I have a problem that I do not know how to solve and it may involve cron daemon.

Problem: I have a module that cannot be unloaded with rmmod after loading it using a cronjob entry.

If I run the script file manually, it works fine.
- the module (snapapi) unloaded when the script ends.

If I put the script into a cronjob, the module will be listed as "[deleted]" when view by lsmod. Attempt to remove it will failed and I cannot load the module again (msg something like: module name already loaded)

Manual run: It will load and unloaded correctly.
insmod snapapi
rmmod snapapi

I also tried sleep 10 when I finished the job before trying to remove the module on my script. It fails only when it was run as cronjob. Manual running the script works fine.

modinfo snapapi
filename: /lib/modules/2.4.26/kernel/drivers/block/snapapi.o
description: <none>
author: <none>
license: "Proprietary"

Any suggestions will be greatly appreciated.
Old 10-23-2004, 07:05 AM   #2
Senior Member
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
What does the crontab entry look like?


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
cron issue abdul_zu Linux - Newbie 8 07-31-2005 11:39 PM
cron issue, php script runs fine in browser and cli dtra Linux - Software 1 07-15-2005 05:45 AM
rmmod -f not working R0UTE Linux - Software 0 10-27-2004 09:12 AM
Why can't I use lsmod rmmod etc JohnSharp Linux - Newbie 4 04-08-2004 10:11 AM
Can't rmmod kernal sound drivers Forezt Fedora 2 02-29-2004 01:02 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:28 AM.

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