[Perl-unix-users] Re: Timeing Out a Command - how to?

2006-03-13 Thread $Bill Luebkert
Arijit Das wrote: > Is there any way to time out a unix command? > > Its something like this... I want my PerlPgm to be > killed by the shell (sh/bash/csh) if my PerlPgm fails to finish off by > 300 elapsed seconds. > > Something like > > -timeout 300 might_hang.pl > > This should execut

RE: [Perl-unix-users] Timeing Out a Command - how to?

2006-03-13 Thread Thomas, Mark - BLS CTR
Why might might_hang.pl hang? Perhaps the problem can be fixed there without using alarms, particularly if the hang is due to a network resource.   Otherwise, you can start a watchdog process that will kill might_hang.pl after 300 seconds. Here's a bash shell script that will do it for you: h

[Perl-unix-users] Timeing Out a Command - how to?

2006-03-13 Thread Arijit Das
Is there any way to time out a unix command?   Its something like this... I want my PerlPgm to be killed by the shell (sh/bash/csh) if my PerlPgm fails to finish off by 300 elapsed seconds.   Something like   -timeout 300 might_hang.pl   This should execute might_hang.pl normally but if m

[Perl-unix-users] LDAPS

2006-03-13 Thread Makarov, Vladimir/Medical Library
Title: LDAPS Hello members, I wonder if someone can provide me with or point me to an example of working perl script which can authenticate user via LDAPS (search only, no need to update). It needs to find if the user exists and retrieve some info, such as phone, email, etc. I must be miss