In Accurev, what is the quick command I can use to find out whether a login session is active now?
I am building an application where I used accurev login <username> <password>
command to login to accurev.
After some time, I wanted to verify if the session is still available. Based on that, I will either re login or just use the previous session.
I can use accurev info
to see the principal, but I feel that is also taking some time to return the results. Is there any other better way?
Note that I don't want to persist the login session using -n
There is a specific command to get your authorization level within AccuRev. You can use "accurev secinfo" and you can expect to see three different outputs:
The output will be a single word. For users that login within a password, you can expect to see either "authuser" or "notauth". For a user that does not have a password set, you will see either "anyuser" or "notauth". The output "notauth" in both instances will tell you the session has expired.