On 09/11/2013 11:09 AM,
kschwarz@xxxxxxxxxxxxxx wrote:
Hi, It is a little tricky, but you can use the classad regexps function to remove the directory prefix, something like (on Unix), with a regexp that says "Match the longest string of characters without a / at the end of the string. condor_q -format "%d." Clusterid -format "%d " Procid -format "%s\n" 'regexps("([^\/]*$)", Cmd, "\1")' I think the Windows quoting rules are a bit different, and you probably want to avoid both / and \, so something this should work there: condor_q -format "%d." Clusterid -format "%d " Procid -format "%s\n" regexps(\"([^/\\]*$)\", Cmd, \"\1\")' -Greg |