Re: how to wait 50 second ?

2001-06-01 Thread rob chanter

On Fri, Jun 01, 2001 at 01:53:17PM +0200, [EMAIL PROTECTED] wrote:
> Hi,
> 
> Is it possible to use a commando in Perl that will wait for example 50 
> seconds an then will continue ?
> 

sleep 50;

That's assuming you meant "command"; a commando could probably do
whatever the hell he wanted on my system :-).

> Thanks in advance
> 

You're welcome.

rob c



Re: how to wait 50 second ?

2001-06-01 Thread Brett W. McCoy

On Fri, 1 Jun 2001 [EMAIL PROTECTED] wrote:

> Is it possible to use a commando in Perl that will wait for example 50
> seconds an then will continue ?

sleep(50);

See the perldoc on sleep for more details on it.

-- Brett

Brett W. McCoy
Software Engineer
Broadsoft, Inc.
240-364-5225
[EMAIL PROTECTED]




Re: how to wait 50 second ?

2001-06-01 Thread Walt Mankowski

On Fri, Jun 01, 2001 at 01:53:17PM +0200, [EMAIL PROTECTED] wrote:
> Is it possible to use a commando in Perl that will wait for example 50 
> seconds an then will continue ?

Yes -- sleep(50)

See perldoc -f sleep for more information.

Walt



Re: how to wait 50 second ?

2001-06-01 Thread Kevin Meltzer

Hi Michiel,

Look at sleep()

perldoc -f sleep

Cheers,
Kevin

On Fri, Jun 01, 2001 at 01:53:17PM +0200, [EMAIL PROTECTED] ([EMAIL PROTECTED]) 
spew-ed forth:
> Hi,
> 
> Is it possible to use a commando in Perl that will wait for example 50 
> seconds an then will continue ?
> 
> Thanks in advance
> 
> 
> Michiel von der Crone
> Support Engineer
> 
> Email : [EMAIL PROTECTED]
> 
> OMNIS SOURCE
> Lozenberg, 6 Phone +32(0)2/721.54.10
> B-1932 Zaventem  Fax   +32(0)2/725.88.50
> BELGIUM  http://www.source.be 
-- 
[Writing CGI Applications with Perl - http://perlcgi-book.com]
You are all the Buddha.
-- Buddha (last words)



RE: how to wait 50 second ?

2001-06-01 Thread Hill, Ronald

Hi,

Is it possible to use a commando in Perl that will wait for example 50 
seconds an then will continue ?

Thanks in advance


[snipped]

take a look at the sleep command
sleep EXPR
sleep   Causes the script to sleep for EXPR seconds, or forever if no
EXPR. May be interrupted if the process receives a signal such
as `SIGALRM'. Returns the number of seconds actually slept. You
probably cannot mix `alarm' and `sleep' calls, because `sleep'
is often implemented using `alarm'.

On some older systems, it may sleep up to a full second less
than what you requested, depending on how it counts seconds.
Most modern systems always sleep the full amount. They may
appear to sleep longer than that, however, because your process
might not be scheduled right away in a busy multitasking system.

For delays of finer granularity than one second, you may use
Perl's `syscall' interface to access setitimer(2) if your system
supports it, or else see the select entry elsewhere in this
document above. The Time::HiRes module from CPAN may also help.

See also the POSIX module's `sigpause' function.

hope this helps

Ron



how to wait 50 second ?

2001-06-01 Thread michiel

Hi,

Is it possible to use a commando in Perl that will wait for example 50 
seconds an then will continue ?

Thanks in advance


Michiel von der Crone
Support Engineer

Email : [EMAIL PROTECTED]

OMNIS SOURCE
Lozenberg, 6 Phone +32(0)2/721.54.10
B-1932 Zaventem  Fax   +32(0)2/725.88.50
BELGIUM  http://www.source.be