{"id":890,"date":"2010-08-14T10:35:48","date_gmt":"2010-08-14T15:35:48","guid":{"rendered":"http:\/\/adam.rosi-kessel.org\/weblog\/?p=890"},"modified":"2010-08-14T10:59:30","modified_gmt":"2010-08-14T15:59:30","slug":"lazyweb-request-profiling-timer-expired","status":"publish","type":"post","link":"http:\/\/adam.rosi-kessel.org\/weblog\/2010\/08\/14\/lazyweb-request-profiling-timer-expired","title":{"rendered":"Lazyweb Request: Profiling Timer Expired?"},"content":{"rendered":"<p>Dear Lazyweb:<\/p>\n<p>I have a bash script with a while loop that takes a long time to process. It restores file modification times for complicated reasons not worth discussing here. Removing some nonessential stuff, I have the following code (I know it could be rewritten to be elegant, or at least collapsed into a single line):<\/p>\n<pre>``\r\ncat .\/preserve_file_mod_times | while read x\r\ndo\r\n  filename=`echo $x|sed 's\/|.*\/\/g'`\r\n  lastmod=`echo $x|sed 's\/^.*|\/\/g'`\r\n  touch -t \"$lastmod\" \"$filename\"\r\ndone\r\n``<\/pre>\n<p>As the input file has gotten longer, the loop now frequently fails:<br \/>\n<code><br \/>\n376 Profiling timer expired touch -t \"$lastmod\" \"$filename\"<br \/>\n<\/code><\/p>\n<p>I&#8217;ve googled this error and understand what it is (i.e. SIGPROF) but not how to fix or workaround it. Any hints?<\/p>\n<p>Thanks!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dear Lazyweb: I have a bash script with a while loop that takes a long time to process. It restores file modification times for complicated reasons not worth discussing here. Removing some nonessential stuff, I have the following code (I know it could be rewritten to be elegant, or at least collapsed into a single [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[15,26],"tags":[],"_links":{"self":[{"href":"http:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/posts\/890"}],"collection":[{"href":"http:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/comments?post=890"}],"version-history":[{"count":17,"href":"http:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/posts\/890\/revisions"}],"predecessor-version":[{"id":907,"href":"http:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/posts\/890\/revisions\/907"}],"wp:attachment":[{"href":"http:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/media?parent=890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/categories?post=890"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/tags?post=890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}