In a script I declare several variables at the start eg
sysadmin=servername1
project1=servername2
project2=servername3 etc etc
Sysadmin have access to all servers, project 1 people have accounts on their servers only and so on. In the later part of the script I interrogate the third party security software I use and get a value like 'project2:bloggsj'. Its easy enough to strip out the username, bloggsj or the server group project2 as a variable. What I want to achieve is when the server group variable equals the corresponding variable set at the start of the script then run an rsh command to that server where that person will have an account. (This is for a helpdesk script I am writting where the HD analysts are not allowed to have full Security access).
clear as mud...
Adam
sysadmin=servername1
project1=servername2
project2=servername3 etc etc
Sysadmin have access to all servers, project 1 people have accounts on their servers only and so on. In the later part of the script I interrogate the third party security software I use and get a value like 'project2:bloggsj'. Its easy enough to strip out the username, bloggsj or the server group project2 as a variable. What I want to achieve is when the server group variable equals the corresponding variable set at the start of the script then run an rsh command to that server where that person will have an account. (This is for a helpdesk script I am writting where the HD analysts are not allowed to have full Security access).
clear as mud...
Adam