LinuxQuestions.org
Visit Jeremy's Blog.
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 12-21-2007, 03:00 AM   #1
bbmak
Member
 
Registered: May 2004
Posts: 178

Rep: Reputation: 31
bash script - I want some time delay between each command is executed


I want a few second delay between each line when executed. Are there anyway to do it? like 5 seconds delay


Quote:
sudo wlanconfig ath0 create wlandev wifi0 wlanmode ap
sudo wlanconfig ath1 create wlandev wifi0 wlanmode ap
sudo wlanconfig ath2 create wlandev wifi0 wlanmode ap

sudo iwconfig ath0 essid "test-1"
sudo iwconfig ath1 essid "test-2"
sudo iwconfig ath2 essid "test-3"
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 12-21-2007, 03:04 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Code:
sleep 5
See man sleep for details!
 
3 members found this post helpful.
Old 12-21-2007, 03:35 AM   #3
bbmak
Member
 
Registered: May 2004
Posts: 178

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by colucix View Post
Code:
sleep 5
See man sleep for details!
thx u for quick the reply. it worked great
 
1 members found this post helpful.
  


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
time when a command was executed. anandkj Linux - Newbie 3 12-21-2007 01:09 AM
time a process within bash script aubrey-calm2 Linux - General 2 06-15-2007 01:39 PM
how-to: repeat OR iterate shell OR bash command delay OR interval admarshall Linux - General 5 07-18-2005 10:47 PM
See the time of each bash command suguru Linux - Newbie 2 07-24-2004 02:30 PM
No effect when 'export' command executed in a script? sylvain_gnu Linux - Software 6 04-20-2004 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:45 AM.

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
Open Source Consulting | Domain Registration