RE: [expert] shell script function to pause / wait

2000-12-15 Thread Bill Shirley

man sleep

Bill


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Andy Judge
Sent: Thursday, December 14, 2000 5:22 PM
To: [EMAIL PROTECTED]
Subject: [expert] shell script function to pause / wait


What is the function to have the script pause for n amount of seconds before
executing the next line of instructions?  I'm trying to write a script that
uses Samba mounts to backup documents and E-mail on clients.  The problem is
that when I try to umount the smbfs directory to mount another for another
computer, it does it too quickly and it never umounts the first mount.  Any
help would be much appreciated.

Andy





Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.



Re: [expert] shell script function to pause / wait

2000-12-14 Thread Michael O'Henly

Is there a simple way of making x random -- say a random value between 0 and 
4 seconds?

On Thursday 14 December 2000 12:06, you wrote:

> > sleep x
>
> x=numseconds
>
> > What is the function to have the script pause for n amount of seconds
> > before executing the next line of instructions?  I'm trying to write a
> > script that uses Samba mounts to backup documents and E-mail on clients. 
> > The problem is that when I try to umount the smbfs directory to mount
> > another for another computer, it does it too quickly and it never umounts
> > the first mount.  Any help would be much appreciated.
> >
> > Andy
> >
> >
> >
> >
> > =_976823516-6145-0
> > Keep in touch with http://mandrakeforum.com:
> > Subscribe the "[EMAIL PROTECTED]" mailing list.


Content-Type: text/plain; name="message.footer"
Content-Transfer-Encoding: 8bit
Content-Description: 


-- 
Michael O'Henly
TENZO Design



Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.



[expert] shell script function to pause / wait

2000-12-14 Thread Andy Judge

What is the function to have the script pause for n amount of seconds before
executing the next line of instructions?  I'm trying to write a script that
uses Samba mounts to backup documents and E-mail on clients.  The problem is
that when I try to umount the smbfs directory to mount another for another
computer, it does it too quickly and it never umounts the first mount.  Any
help would be much appreciated.

Andy



Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.



Re: [expert] shell script function to pause / wait

2000-12-14 Thread Adam Clater

sleep x 

x=numseconds

> What is the function to have the script pause for n amount of seconds before
> executing the next line of instructions?  I'm trying to write a script that
> uses Samba mounts to backup documents and E-mail on clients.  The problem is
> that when I try to umount the smbfs directory to mount another for another
> computer, it does it too quickly and it never umounts the first mount.  Any
> help would be much appreciated.
> 
> Andy
> 
> 
> 
> 
> =_976823516-6145-0
> Keep in touch with http://mandrakeforum.com: 
> Subscribe the "[EMAIL PROTECTED]" mailing list.
> 
> 



-- 
Adam Clater
Global Operations 
+1 703 471 2405




Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.