|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
cat file every 30 seconds
is it possible to set a unix command to run every 30 seconds? i need to run the command:
cat filename every 30 seconds if possible. i've had a look through the manual and there doesnt seem to be anything there. It doesnt have to be cat, just anything that will show the contents of a file every 30s cheers. |
|
#2
|
|||
|
|||
|
Hi fitzjj,
you can use the sleep command to wait for a specified amount of time (in seconds). You could use this script f.e.: Code:
#!/bin/ksh
export INTERVAL=30
while [ true ]
do
cat filename
sleep ${INTERVAL}
done
You could adapt the loop to execute this during a specified time (f.e. every 30 seconds during 1 hour)... Hope this helps, Stef. |
|
#3
|
|||
|
|||
|
cheers! thats perfect - exactly what i needed
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > cat file every 30 seconds |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|