Google Groups Home
Help | Sign in
Message from discussion help for delaying command execution
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
Nilesh Barot  
View profile
 More options Feb 27, 5:23 am
From: Nilesh Barot <barotnil...@gmail.com>
Date: Wed, 27 Feb 2008 02:23:46 -0800 (PST)
Local: Wed, Feb 27 2008 5:23 am
Subject: Re: help for delaying command execution
Hi,

you can use sleep 600 to wait for 10 minutes...
adjust timing as per your requirement.

cheers
www.linuxforbeginners.info
www.linux4beginners.info

On Jan 31, 1:09 pm, kingkhan <kingkha...@gmail.com> wrote:

> while executing a script i need to delay execution of one command. @
> present the system is skipping the result of command & executing the
> next line. plz help me out . my script as follows

> file name xyz.sh

> echo --------------------------------------------------->>xyz.txt
> echo --------------------------------------------------->>xyz.txt
> ps -ef|grep KKK >>xyz.txt
> fsfstatus >>xyz.txt
> echo --------------------------------------------------->>xyz.txt
> echo --------------------------------------------------->>xyz.txt

> in this script am getting output only for ps -ef command & not for
> fsfstatus as fsfstatus takes bit time, the script is skipping the
> output of fsfstatus and executes echo i.e. next line. plz suggest wats
> the appropriate command to troubleshoot this,i tried sleep & wait but
> these are in vain.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google