LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-16-2009, 05:10 PM   #1
future2012
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

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

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
basicly just load and unload driver
WHY????!!!!

This illustrates the basic concept of an endless loop:

Code:
while true; do date; sleep 5; done
 
Old 07-17-2009, 11:28 AM   #3
jeromeNP7
Member
 
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.

Linux

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


Reply


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 03: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 09:00 PM
mv in for loop stops after first file it comes to geeyathink Programming 4 02-14-2008 11:18 PM
tmpfs-like loop file? generic_user Linux - General 1 09-17-2006 01:50 AM
Geting error loop QFike:getch: File not open QFile:atEnd: this file is not open badgerbox76 Linux - Newbie 6 01-07-2006 05:30 PM


All times are GMT -5. The time now is 01:27 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration