$ timeout 8 tail -f /var/log/syslog
we can specify time in seconds , minutes , hours and days
To make Preserve status returns an exit status even the process is terminated forcefully
Ctrl+c
$ Ctrl+c
$ echo $?
To set a signal to the command
$ timeout -s <command>
To check the available signals
$ kill -l
To send signals by using a signal number
To kill the timeout command after 5 seconds if the connection is not established
regards,
T.Dhanasekar