|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
time command in ksh shell script
Dear all
I have a utility that runs from the ksh forum and would like it to be terminated once the duration of the program exceeds ten minutes. I know that this should be implemented in a while or until loop but how do I implement the clock or time functions. Thanks for your help. ihsan.mohamied |
|
#2
|
|||
|
|||
|
try coprocesses:
Code:
#!/bin/ksh # add this line at the start of your main shell script async_coprocess.ksh $$ |& .......... asynch_coprocess.ksh: Code:
#!/bin/ksh sleep 6000 kill -9 $1 exit 0 |
|
#3
|
|||
|
|||
|
Thank you for your help. I got what I wanted.
Ihsan |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > time command in ksh shell script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|