How do I stop a shell script?

Hương Trang

New member
How do I stop a shell script?
Answer
To end a shell script and set its exit status,
use the exit command. Give exit the exit status that your script should have. If it has no explicit status, it will exit with the status of the last command run.
 

Tìm kiếm

Back
Top