{"id":174601,"date":"2013-03-29T11:00:02","date_gmt":"2013-03-29T07:00:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=174601"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=174601","title":{"rendered":"<span class=\"post_title\">\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 Cach\u00e9<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041f\u043e \u043c\u043e\u0442\u0438\u0432\u0430\u043c \u0441\u0442\u0430\u0442\u044c\u0438 \u0432 <a href=\"https:\/\/developer.intersystems.com\/devconnection\/build\/402-17\/running-an-os-command\">Developer Connection<\/a> \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u0432\u043e\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438\u044e \u043a\u043b\u0430\u0441\u0441\u0430 \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u043a\u043e\u043c\u0430\u043d\u0434 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0433\u0434\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 Cach\u00e9 \u0438\u043b\u0438 Ensemble. <br \/>  \u041a\u043b\u0430\u0441\u0441 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0438\u0437 Cach\u00e9 \u0447\u0442\u043e-\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u0445\u043e\u0441\u0442\u043e\u0432\u043e\u0439 \u041e\u0421: \u0440\u0430\u0441\u043f\u043e\u0440\u044f\u0434\u0438\u0442\u044c\u0441\u044f \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0431\u044d\u043a\u0430\u043f\u043e\u0432, \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0439 <s>,\u00ab\u043f\u043e\u0440\u0443\u0442\u0430\u0442\u044c\u00bb \u0441\u0435\u0440\u0432\u0435\u0440 Cach\u00e9<\/s> \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f.<br \/>  \u041a\u043b\u0430\u0441\u0441 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0445\u043e\u0441\u0442\u043e\u0432\u043e\u0439 \u041e\u0421 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u0432 \u0433\u043b\u043e\u0431\u0430\u043b \u0438\u043b\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 \u043a\u043b\u0430\u0441\u0441\u0430 \u0441 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438<\/b><\/p>\n<div class=\"spoiler_text\"><font color=\"#000080\">Class&nbsp;Server.Manage&nbsp;Extends&nbsp;%RegisteredObject<br \/>  <\/font><font color=\"#000000\">{<\/p>\n<p>  <\/font><font color=\"#000080\">Parameter&nbsp;<\/font><font color=\"#000000\">cmdlist&nbsp;=&nbsp;<\/font><font color=\"#800080\">&quot;dir,type,ver&quot;<\/font><font color=\"#000000\">;<\/p>\n<p>  <\/font><font color=\"#000080\">\/\/\/&nbsp;\u043c\u0435\u0442\u043e\u0434 \u0443\u0431\u0438\u0440\u0430\u0435\u0442&nbsp;\u0438\u0437&nbsp;\u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439&nbsp;\u0441\u0442\u0440\u043e\u043a\u0438&nbsp;\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438&nbsp;\u043a\u043e\u043c\u0430\u043d\u0434<br \/>  \/\/\/&nbsp;\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442&nbsp;\u0442\u043e\u043b\u044c\u043a\u043e&nbsp;\u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d\u043d\u044b\u0435&nbsp;\u043a\u043e\u043c\u0430\u043d\u0434\u044b<br \/>  ClassMethod&nbsp;<\/font><font color=\"#000000\">safeCmd(<\/font><font color=\"#ff00ff\">cmd<\/font><font color=\"#000000\">)&nbsp;<\/font><font color=\"#000080\">As&nbsp;%String<br \/>  <\/font><font color=\"#000000\">{<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">set&nbsp;<\/font><font color=\"#800000\">cmd<\/font><font color=\"#000000\">=<\/font><font color=\"#0000ff\">$piece<\/font><font color=\"#000000\">(<\/font><font color=\"#800000\">cmd<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;&amp;&amp;&quot;<\/font><font color=\"#000000\">)&nbsp;&nbsp;<\/font><font color=\"#008000\">\/\/&nbsp;\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c&nbsp;\u043e\u0434\u043d\u0443&nbsp;\u043a\u043e\u043c\u0430\u043d\u0434\u0443<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">set&nbsp;<\/font><font color=\"#800000\">cmd<\/font><font color=\"#000000\">=<\/font><font color=\"#0000ff\">$piece<\/font><font color=\"#000000\">(<\/font><font color=\"#800000\">cmd<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;|&quot;<\/font><font color=\"#000000\">)<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">for&nbsp;<\/font><font color=\"#800000\">i<\/font><font color=\"#000000\">=1:1:<\/font><font color=\"#0000ff\">$length<\/font><font color=\"#000000\">(..<\/font><font color=\"#0000ff\">#cmdlist<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;,&quot;<\/font><font color=\"#000000\">)&nbsp;<\/font><font color=\"#0000ff\">set&nbsp;<\/font><font color=\"#800000\">safe<\/font><font color=\"#000000\">(<\/font><font color=\"#0000ff\">$p<\/font><font color=\"#000000\">(..<\/font><font color=\"#0000ff\">#cmdlist<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;,&quot;<\/font><font color=\"#000000\">,<\/font><font color=\"#800000\">i<\/font><font color=\"#000000\">))=<\/font><font color=\"#008000\">&quot;&quot;&nbsp;&nbsp;\/\/&nbsp;\u0441\u043f\u0438\u0441\u043e\u043a&nbsp;\u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d\u043d\u044b\u0445&nbsp;\u043a\u043e\u043c\u0430\u043d\u0434<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">if&nbsp;<\/font><font color=\"#000000\">&#8216;<\/font><font color=\"#0000ff\">$data<\/font><font color=\"#000000\">(<\/font><font color=\"#800000\">safe<\/font><font color=\"#000000\">(<\/font><font color=\"#0000ff\">$piece<\/font><font color=\"#000000\">(<\/font><font color=\"#800000\">cmd<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;&nbsp;&quot;<\/font><font color=\"#000000\">)))&nbsp;<\/font><font color=\"#0000ff\">set&nbsp;<\/font><font color=\"#800000\">cmd<\/font><font color=\"#000000\">=<\/font><font color=\"#008000\">&quot;&quot;&nbsp;&nbsp;&nbsp;<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">quit&nbsp;<\/font><font color=\"#800000\">cmd<br \/>  <\/font><font color=\"#000000\">}<\/p>\n<p>  <\/font><font color=\"#000080\">\/\/\/&nbsp;\u043c\u0435\u0442\u043e\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442&nbsp;\u043a\u043e\u043c\u0430\u043d\u0434\u0443&nbsp;cmd&nbsp;\u043d\u0430&nbsp;\u0441\u0435\u0440\u0432\u0435\u0440\u0435&nbsp;\u0438&nbsp;\u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442&nbsp;\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442&nbsp;\u0432&nbsp;\u0433\u043b\u043e\u0431\u0430\u043b&nbsp;ad&nbsp;\u0442\u0430\u043a,&nbsp;\u0447\u0442\u043e:<br \/>  \/\/\/&nbsp;@ad=\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e&nbsp;\u0441\u0442\u0440\u043e\u043a<br \/>  \/\/\/&nbsp;@ad@(\u043d\u043e\u043c\u0435\u0440&nbsp;\u0441\u0442\u0440\u043e\u043a\u0438)=\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435a<br \/>  ClassMethod&nbsp;<\/font><font color=\"#000000\">runCmd(<\/font><font color=\"#ff00ff\">cmd<\/font><font color=\"#000000\">,&nbsp;<\/font><font color=\"#ff00ff\">ad&nbsp;<\/font><font color=\"#000080\">As&nbsp;%String<\/font><font color=\"#000000\">)&nbsp;<\/font><font color=\"#000080\">As&nbsp;%Status<br \/>  <\/font><font color=\"#000000\">{<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">set&nbsp;<\/font><font color=\"#800000\">sc<\/font><font color=\"#000000\">=<\/font><font color=\"#0000ff\">$$$OK<br \/>  &nbsp;&nbsp;do&nbsp;$SYSTEM<\/font><font color=\"#008080\">.Process<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">SetZEOF<\/font><font color=\"#000000\">(1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#008000\">\/\/&nbsp;\u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u043c&nbsp;\u0440\u0435\u0436\u0438\u043c&nbsp;\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438&nbsp;\u043e\u0448\u0438\u0431\u043a\u0438&nbsp;\u043d\u0430&nbsp;EOF<br \/>  &nbsp;&nbsp;\/\/&nbsp;\u0434\u0435\u043b\u0430\u0435\u043c&nbsp;\u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e&nbsp;\u0441\u0442\u0440\u043e\u043a\u0443&nbsp;\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0439<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">set&nbsp;<\/font><font color=\"#800000\">cmd<\/font><font color=\"#000000\">(1)=..<\/font><font color=\"#0000ff\">safeCmd<\/font><font color=\"#000000\">(<\/font><font color=\"#800000\">cmd<\/font><font color=\"#000000\">)&nbsp;<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">quit<\/font><font color=\"#000000\">:<\/font><font color=\"#800000\">cmd<\/font><font color=\"#000000\">(1)=<\/font><font color=\"#008000\">&quot;&quot;&nbsp;<\/font><font color=\"#0000ff\">$$$ERROR<\/font><font color=\"#000000\">(<\/font><font color=\"#0000ff\">$$$GeneralError<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u0430\u044f&nbsp;\u043a\u043e\u043c\u0430\u043d\u0434\u0430&nbsp;&quot;<\/font><font color=\"#000000\">_<\/font><font color=\"#800000\">cmd<\/font><font color=\"#000000\">)<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">set&nbsp;<\/font><font color=\"#800000\">cmd<\/font><font color=\"#000000\">=<\/font><font color=\"#800000\">cmd<\/font><font color=\"#000000\">(1)<br \/>  &nbsp;&nbsp;<\/font><font color=\"#008000\">\/\/&nbsp;\u043e\u0447\u0438\u0449\u0430\u0435\u043c&nbsp;\u043f\u0440\u0438\u0441\u043b\u0430\u043d\u043d\u044b\u0439&nbsp;\u0433\u043b\u043e\u0431\u0430\u043b<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">kill&nbsp;<\/font><font color=\"#000000\">@<\/font><font color=\"#800000\">ad<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">set&nbsp;<\/font><font color=\"#800000\">count<\/font><font color=\"#000000\">=0<\/p>\n<p>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">try&nbsp;<\/font><font color=\"#800080\">{<br \/>  &nbsp;&nbsp;<\/font><font color=\"#008000\">\/\/&nbsp;\u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c&nbsp;\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e&nbsp;\u0441&nbsp;\u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c&nbsp;\u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439&nbsp;\u0441\u0442\u0440\u043e\u043a\u0438&nbsp;\u0438&nbsp;\u0447\u0442\u0435\u043d\u0438\u0435\u043c&nbsp;\u043e\u0442\u0432\u0435\u0442\u0430<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">open&nbsp;<\/font><font color=\"#800000\">cmd<\/font><font color=\"#000000\">:<\/font><font color=\"#008000\">&quot;QR:K\\CP866\\&quot;&nbsp;<\/font><font color=\"#0000ff\">if&nbsp;<\/font><font color=\"#000000\">&#8216;<\/font><font color=\"#0000ff\">$test&nbsp;&nbsp;$$$ThrowStatus<\/font><font color=\"#000000\">(<\/font><font color=\"#0000ff\">$$$ERROR<\/font><font color=\"#000000\">(<\/font><font color=\"#0000ff\">$$$GeneralError<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;\u041d\u0435&nbsp;\u0443\u0434\u0430\u043b\u043e\u0441\u044c&nbsp;\u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c&nbsp;\u043a\u043e\u043c\u0430\u043d\u0434\u0443&nbsp;&quot;<\/font><font color=\"#000000\">_<\/font><font color=\"#800000\">cmd<\/font><font color=\"#000000\">))<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">Set&nbsp;<\/font><font color=\"#800000\">IO<\/font><font color=\"#000000\">=<\/font><font color=\"#0000ff\">$IO&nbsp;&nbsp;<\/font><font color=\"#008000\">\/\/&nbsp;\u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c&nbsp;\u0442\u0435\u043a\u0443\u0449\u0435\u0435&nbsp;\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e<br \/>  &nbsp;&nbsp;\/\/&nbsp;\u0432\u044b\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c&nbsp;\u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e&nbsp;\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442&nbsp;\u043a\u043e\u043c\u0430\u043d\u0434\u044b&nbsp;\u043f\u043e\u043a\u0430&nbsp;\u043d\u0435&nbsp;\u043d\u0430\u0441\u0442\u0443\u043f\u0438\u0442&nbsp;\u043a\u043e\u043d\u0435\u0446&nbsp;\u0444\u0430\u0439\u043b\u0430&nbsp;\u0438&nbsp;\u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c&nbsp;\u0435\u0433\u043e&nbsp;\u0432&nbsp;\u0433\u043b\u043e\u0431\u0430\u043b<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">for&nbsp;&nbsp;<\/font><font color=\"#800080\">{&nbsp;<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">use&nbsp;<\/font><font color=\"#800000\">cmd&nbsp;<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">read&nbsp;<\/font><font color=\"#800000\">str&nbsp;<\/font><font color=\"#0000ff\">quit<\/font><font color=\"#000000\">:<\/font><font color=\"#0000ff\">$zeof<\/font><font color=\"#000000\">=-1<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">set&nbsp;<\/font><font color=\"#000000\">@<\/font><font color=\"#800000\">ad<\/font><font color=\"#000000\">@(<\/font><font color=\"#0000ff\">$Increment<\/font><font color=\"#000000\">(<\/font><font color=\"#800000\">count<\/font><font color=\"#000000\">))=<\/font><font color=\"#800000\">str<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#800080\">}<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">set&nbsp;<\/font><font color=\"#000000\">@<\/font><font color=\"#800000\">ad<\/font><font color=\"#000000\">=<\/font><font color=\"#800000\">count<br \/>  &nbsp;&nbsp;<\/font><font color=\"#008000\">\/\/&nbsp;\u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c&nbsp;\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e&nbsp;<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">#dim&nbsp;<\/font><font color=\"#800000\">e&nbsp;<\/font><font color=\"#0000ff\">as&nbsp;<\/font><font color=\"#008080\">%Exception.AbstractException<br \/>  &nbsp;&nbsp;<\/font><font color=\"#800080\">}&nbsp;<\/font><font color=\"#0000ff\">Catch&nbsp;<\/font><font color=\"#800000\">e&nbsp;<\/font><font color=\"#800080\">{<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#0000ff\">set&nbsp;<\/font><font color=\"#800000\">sc<\/font><font color=\"#000000\">=<\/font><font color=\"#800000\">e<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">AsStatus<\/font><font color=\"#000000\">()<br \/>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/font><font color=\"#008000\">\/\/do&nbsp;e.Log()&nbsp;&nbsp;&nbsp;\/\/&nbsp;<br \/>  &nbsp;&nbsp;<\/font><font color=\"#800080\">}<br \/>  &nbsp;&nbsp;<\/font><font color=\"#008000\">\/\/&nbsp;\u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c&nbsp;\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e&nbsp;<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">close&nbsp;<\/font><font color=\"#800000\">cmd<\/p>\n<p>  &nbsp;&nbsp;<\/font><font color=\"#008000\">\/\/&nbsp;\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c&nbsp;\u0442\u0435\u043a\u0443\u0449\u0435\u0435&nbsp;\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">If&nbsp;$data<\/font><font color=\"#000000\">(<\/font><font color=\"#800000\">IO<\/font><font color=\"#000000\">)&nbsp;<\/font><font color=\"#0000ff\">Use&nbsp;<\/font><font color=\"#800000\">IO<br \/>  &nbsp;<\/font><font color=\"#0000ff\">quit&nbsp;<\/font><font color=\"#800000\">sc<br \/>  <\/font><font color=\"#000000\">}<\/p>\n<p>  }<\/font><\/div>\n<\/div>\n<p>  \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 cmdlist \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e.<br \/>  \u041c\u0435\u0442\u043e\u0434 safeCmd() \u043f\u0440\u0438\u0447\u0451\u0441\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443.<br \/>  \u041c\u0435\u0442\u043e\u0434 runCmd() \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 cmd \u0438 \u043a\u043b\u0430\u0434\u0451\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u043a\u043e\u0441\u0432\u0435\u043d\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 ad. <\/p>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u0432\u0441\u0435\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 Cach\u00e9, \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0438. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0439 \u0432 <a href=\"https:\/\/developer.intersystems.com\/devconnection\/build\/402-17\/running-an-os-command\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a>, \u0440\u0430\u0431\u043e\u0442\u0430 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e CommandPipe \u2014 \u0440\u0435\u0436\u0438\u043c \u00abQR\u00bb \u0434\u043b\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b open. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c <a href=\"http:\/\/docs.intersystems.com\/cache20122\/csp\/docbook\/DocBook.UI.Page.cls?KEY=GIOD_interproccomm#GIOD_C89992\">\u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>.<\/p>\n<h5>\u0414\u0435\u043c\u043e<\/h5>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c <a href=\"http:\/\/188.127.249.14:57772\/csp\/runcmd\/run.csp\">\u0437\u0434\u0435\u0441\u044c<\/a> \u2014 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 CSP+Twitter Bootstrap. <br \/>  \u0421\u0435\u0440\u0432\u0435\u0440 \u043d\u0435 \u043e\u0442\u0434\u0430\u043d \u043d\u0430 \u0437\u0430\u043a\u043b\u0430\u043d\u0438\u0435 \u2014 \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b: type, ver,<s> format \u0441,<\/s> dir.<br \/>  \u041a\u043e\u0434 \u043a\u043b\u0430\u0441\u0441\u0430 \u0438 \u0432\u0435\u0431-\u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432\u044b\u043b\u043e\u0436\u0435\u043d \u043d\u0430 <a href=\"https:\/\/github.com\/intersystems-ru\/cache-run-cmd\">\u0433\u0438\u0442\u0445\u0430\u0431\u0435<\/a>.    \t \t\t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/174601\/\"> http:\/\/habrahabr.ru\/company\/intersystems\/blog\/174601\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041f\u043e \u043c\u043e\u0442\u0438\u0432\u0430\u043c \u0441\u0442\u0430\u0442\u044c\u0438 \u0432 <a href=\"https:\/\/developer.intersystems.com\/devconnection\/build\/402-17\/running-an-os-command\">Developer Connection<\/a> \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u0432\u043e\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438\u044e \u043a\u043b\u0430\u0441\u0441\u0430 \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u043a\u043e\u043c\u0430\u043d\u0434 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0433\u0434\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 Cach\u00e9 \u0438\u043b\u0438 Ensemble. <br \/>  \u041a\u043b\u0430\u0441\u0441 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0438\u0437 Cach\u00e9 \u0447\u0442\u043e-\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u0445\u043e\u0441\u0442\u043e\u0432\u043e\u0439 \u041e\u0421: \u0440\u0430\u0441\u043f\u043e\u0440\u044f\u0434\u0438\u0442\u044c\u0441\u044f \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0431\u044d\u043a\u0430\u043f\u043e\u0432, \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0439 <s>,\u00ab\u043f\u043e\u0440\u0443\u0442\u0430\u0442\u044c\u00bb \u0441\u0435\u0440\u0432\u0435\u0440 Cach\u00e9<\/s> \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f.<br \/>  \u041a\u043b\u0430\u0441\u0441 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0445\u043e\u0441\u0442\u043e\u0432\u043e\u0439 \u041e\u0421 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u0432 \u0433\u043b\u043e\u0431\u0430\u043b \u0438\u043b\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-174601","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/174601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=174601"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/174601\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=174601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=174601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=174601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}