0 Replies Latest reply: Jul 26, 2007 5:28 PM by 3004 RSS

    $0 in MaxL

      This isn't limited to $0, I suppose, but that's what I'm working with in this moment. I want to use $0 to name my log and error files - sounds like a simple, reasonable thing to do. But my MaxL files are named filename.mxl, and I want my log and error files to be named filename.log and filename.err, not filename.mxl.log and filename.mxl.err.<BR><BR>Is there a way to maniplate $0, or any string variable for that matter, in MaxL to trim those last 3 characters? I tried one silly way of backspacing over them, but that didn't work. What I'm doing now is this:<BR><BR>set $dirLogs = '$ARBORPATH/scripts/logs';<BR>set $fileLog = '$dirLogs/$0.log';<BR>set $fileErr = '$dirLogs/$0.err';<BR><BR>spool stdout on to "$fileLog";<BR>spool stderr on to "$fileError";<BR><BR>This works, but I end up with filename.mxl.log, not filename.log. I guess it's not a big deal, but I'm wondering if there is a way to clean this up.<BR><BR>Thanks.