Los Angeles1
asked on
Linux, using 'exit' in a script
I want to use exit in a script in RHEL 6.x
Something like:
This will restart my .profile
I know there are other ways of doing this, but I want to concentrate on how to use exit in a script
How can I do this ?
Thanks in advance
Something like:
pwd
user1
exit
su - user1
This will restart my .profile
I know there are other ways of doing this, but I want to concentrate on how to use exit in a script
How can I do this ?
Thanks in advance
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.