Last modified: 2014-03-21 12:14:12 UTC
| Unhandled Exception: System.ArgumentOutOfRangeException: Cannot be negative. | Parameter name: length | at System.String.Substring (Int32 startIndex, Int32 length) [0x00000] in <filename unknown>:0 | at filter.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 | [ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentOutOfRangeException: Cannot be negative. | Parameter name: length | at System.String.Substring (Int32 startIndex, Int32 length) [0x00000] in <filename unknown>:0 | at filter.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 | touch: cannot touch `/data/project/.system/logs/apache2/global_access.log': Permission denied | /data/project/.system/logs/apache2/global_access.log: You need to share a group with the file | chmod: changing permissions of `/data/project/.system/logs/apache2/global_access.log': Operation not permitted
BTW, where's the source for filter.exe?
(In reply to comment #1) > BTW, where's the source for filter.exe? Guess I found it (cf. https://github.com/benapetr/filter/blob/master/filter/Program.cs): | string s; | while ((s = Console.ReadLine()) != null) | { | if (s.StartsWith("tools-webserver") && s.Contains("HTTP/")) | { | if (s.Contains("+0000]")) | { | int position = 0; | position = s.IndexOf("+0000]") + 8; | int position_of_first = s.IndexOf("/", position); | int position_of_next = s.IndexOf("/", position_of_first + 1); | s = s.Substring(0, position_of_next) + " HTTP" + s.Substring(s.LastIndexOf("/")); | Console.WriteLine(s); | } | } | } Shouldn't be too hard to port to sed :-).
not used on new tools