Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-16-2009, 06:10 PM   #1
LQ Newbie
Registered: Jun 2009
Posts: 6

Rep: Reputation: 0
loop file

can you help me create a file to run this 2 command in linux continously
a loop one

modprobe -v tg3
modprobe -r tg3

basicly just load and unload driver

Old 07-16-2009, 06:15 PM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
basicly just load and unload driver

This illustrates the basic concept of an endless loop:

while true; do date; sleep 5; done
Old 07-17-2009, 12:28 PM   #3
Registered: Jun 2009
Posts: 101

Rep: Reputation: 19
Though not understanding the purpose for loading and unloading the driver constantly, I would suggest to put it in cronjobs, where every full minute the driver is loaded, and inbetween after 30 seconds each time the driver is unloaded. Using cron you can use other time intervalls as well.


Last edited by jeromeNP7; 09-04-2009 at 10:13 PM.


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
how to loop over text file lines within bash script for loop? johnpaulodonnell Linux - Newbie 9 07-28-2015 04:49 PM
How do I take a list from a file and use it in a for loop in python... trist007 Programming 3 05-11-2009 10:00 PM
mv in for loop stops after first file it comes to geeyathink Programming 4 02-15-2008 12:18 AM
tmpfs-like loop file? generic_user Linux - General 1 09-17-2006 02:50 AM
Geting error loop QFike:getch: File not open QFile:atEnd: this file is not open badgerbox76 Linux - Newbie 6 01-07-2006 06:30 PM > Forums > Linux Forums > Linux - Newbie

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