-#! /usr/bin/perl\r
-\r
-# ------------------------------------------------\r
-# Copyright 2014 AT&T Intellectual Property\r
-# Licensed under the Apache License, Version 2.0 (the "License");\r
-# you may not use this file except in compliance with the License.\r
-# You may obtain a copy of the License at\r
-#\r
-# http://www.apache.org/licenses/LICENSE-2.0\r
-#\r
-# Unless required by applicable law or agreed to in writing, software\r
-# distributed under the License is distributed on an "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-# See the License for the specific language governing permissions and\r
-# limitations under the License.\r
-# -------------------------------------------\r
-\r
-\r
-$outfile = "last_tracefile.txt";\r
-$infl = "/var/log/gstrace";\r
-\r
-if(scalar(@ARGV)>0){\r
- $infl = $ARGV[0];\r
-}\r
-\r
-open I,$infl or die "Can't open input log file $infl\n";\r
-\r
-open O,">$outfile";\r
-\r
-while($line=<I>){\r
- if($line =~ /rts:\[.*\]: Started Logging/){\r
- close O;\r
- open O,">$outfile";\r
- }\r
- print O $line;\r
-}\r
-close O;\r
-\r
-\r
-\r
+#! /usr/bin/perl
+
+# ------------------------------------------------
+# Copyright 2014 AT&T Intellectual Property
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -------------------------------------------
+
+
+$outfile = "last_tracefile.txt";
+$infl = "/var/log/gstrace";
+
+if(scalar(@ARGV)>0){
+ $infl = $ARGV[0];
+}
+
+open I,$infl or die "Can't open input log file $infl\n";
+
+open O,">$outfile";
+
+while($line=<I>){
+ if($line =~ /rts:\[.*\]: Started Logging/){
+ close O;
+ open O,">$outfile";
+ }
+ print O $line;
+}
+close O;
+
+
+