top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to terminate/exit from a linux script?

+1 vote
388 views
How to terminate/exit from a linux script?
posted Jan 13, 2014 by Luv Kumar

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

Try exit statement:

exit 0

Replace 0 with respective error codes.

answer Jan 13, 2014 by Salil Agrawal
Thanks Salil for quick answer...
its working as u suggested...
Similar Questions
+1 vote

I have some unique requirement, where I need to do something like this -
1. My script takes the argument as file name which is absolute filename.
2. I need to separate the filename and directory from this absolute file name for the further processing.

Any suggestions -

...