We use an rsh command to check files into ClearCase:
<cfexecute name="C:\cygwin64\bin\rsh.exe"
arguments="-n -l #USERNAME# #SERVER# ""cleartool setview -exec '#KSH_FILE# -user #USERNAME# -dir #VOB_DIRECTORY#' #CLEARCASE_VIEW#"" "
timeout="180"
variable="CHECKIN_FILE_CONTENT">
</cfexecute>
But are running into an issue where a user's primary unix group is set to a different group than the VOB the user is trying to check the file into.
I need to run a newgrp
command right before executing the #KSH_FILE#
I was sure this would work:
<cfexecute name="C:\cygwin64\bin\rsh.exe"
arguments="-n -l #USERNAME# #SERVER# ""newgrp #GROUP#; cleartool setview -exec '#KSH_FILE# -user #USERNAME# -dir #VOB_DIRECTORY#' #CLEARCASE_VIEW#"" "
timeout="180"
variable="CHECKIN_FILE_CONTENT">
</cfexecute>
But it keeps timing out.. no errors, just spins and stops.
---UPDATE--- Upon further testing, cfexcute and rsh don't seem to allow multiple commands. Here is a sample test I tried that yielded the same problems:
<cfexecute name="C:\cygwin64\bin\rsh.exe"
arguments="-n -l #USERNAME# #SERVER# ""newgrp #GROUP#; id -a > results.txt"" "
timeout="180">
</cfexecute>