PDA

View Full Version : [ubuntu] Scritp to wait for few seconds before executing next line



Thyagaraj
September 29th, 2010, 02:16 PM
I have a script which copies(scp) .war file to tomcat's webapps and the .war file extracts creating a folder under webapps directory on a ubuntu system. My next line of the script is restarting the tomcat which is executed immediately before the .war is extracted and this causing problem with



Is it possible so that it waits for few seconds/minutes before it executes the next line of the script. The script is of normal ubuntu commands.

the_original_billq
September 29th, 2010, 02:17 PM
I have a script which copies(scp) .war file to tomcat's webapps and the .war file extracts creating a folder under webapps directory on a ubuntu system. My next line of the script is restarting the tomcat which is executed immediately before the .war is extracted and this causing problem with



Is it possible so that it waits for few seconds/minutes before it executes the next line of the script. The script is of normal ubuntu commands.

sleep n

where n is in seconds...

Thyagaraj
October 1st, 2010, 05:18 AM
Thank you!:)