We have .nsh script to remove the rscd user account on target hosts.
what's in this script ? what 'rscd user account' are you talking about - BladeLogicRSCD on a windows system or something else ?
it will give server name with fqdn like sever.dev.com. Is there anyway that I can get only server name with out FQDN name.
well there are a lot of different ways. you can strip off the .dev.com from this output, you can use the uname command. you can use some other command to get it and if this is a 'runscript' nsh script you can use the $NSH_RUNCMD_HOST variable. but why do you need to strip off the domain from the server name ?
It is simple script it will select target hostname and delete that Blade logic RSCD user account on windows systems. I use command
chapw -d $hostname.
issues was with my script I have made some changes it was working Now. Thank you