05.08.2013 Views

Module 13: Shell Scripts in UNIX - E-Courses

Module 13: Shell Scripts in UNIX - E-Courses

Module 13: Shell Scripts in UNIX - E-Courses

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Operat<strong>in</strong>g Systems Prof. P. C. P. Bhat<br />

Indian Institute of Science Bangalore<br />

Operat<strong>in</strong>g Systems/<strong>Shell</strong> <strong>Scripts</strong> <strong>in</strong> <strong>UNIX</strong> Lecture Notes<br />

file sh_5.file: In the next two files we demonstrate the use of a detached process and also<br />

how to <strong>in</strong>voke a sleep state on a process.<br />

# file sh_5.file<br />

# This file shows how we may group a process <strong>in</strong>to a detached process<br />

# by enclos<strong>in</strong>g it <strong>in</strong> parentheses.<br />

# Also it shows use of sleep command<br />

echo basically we shall sleep for 5 seconds after launch<strong>in</strong>g<br />

echo a detached process and then give the date<br />

(sleep 5; date)<br />

-----------------------------------------------------------------------<br />

file sh_6.file<br />

# file sh_6.file<br />

# Typically

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!