我正在尝试从PHP执行powershell脚本,但它似乎不起作用.
脚本'newEvent.ps1'在Exchange服务器上创建一个事件.
$psPath = "powershell.exe";
$psDIR = "C:\\wamp\\www\\ant\\assets\\ps\\";
$psScript = "newEvent.ps1";
$runScript = $psDIR. $psScript;
$runCMD = $psPath." ".$runScript." 2>&1";
echo "\$psPath $psPath <br>";
echo "\$psDIR $psDIR <br>";
echo "\$psScript $psScript <br>";
echo "\$runScript $runScript <br>";
echo "\$runCMD $runCMD <br>";
exec( $runCMD,$out,$ret);
echo "<pre>";
print_r($out);
print_r($ret);
echo "</pre>";
Run Code Online (Sandbox Code Playgroud)
它输出:
$psPath powershell.exe
$psDIR C:\wamp\www\ant\assets\ps\
$psScript newEvent.ps1
$runScript C:\wamp\www\ant\assets\ps\newEvent.ps1
$runCMD powershell.exe C:\wamp\www\ant\assets\ps\newEvent.ps1 2>&1
Array
(
[0] => File C:\wamp\www\ant\assets\ps\newEvent.ps1 cannot be loaded because the execut
[1] => ion of scripts is disabled …Run Code Online (Sandbox Code Playgroud) 在Jenkins(Hudson)中,我如何更改项目的结帐位置.
我希望将项目签出到apache2的doc-root,/var/svn/project
默认情况下,Jenkins将其检出到/jobsdir on/lib/jenkins/
我想过运行一个shell命令将已检出的代码从jobs文件夹复制到doc-root,但它会复制整个文件夹,即使它是一个已更改的文件.
我应该查看rsync还是Jenkins可以这样做(即使使用插件)
完整的CSS文件:http://pastebin.com/9LjYjiUF
.body-content{
background-image: white url("images/content-bg.gif");
background-repeat: repeat-y;
background-position: left bottom;
}
Run Code Online (Sandbox Code Playgroud)
这是html:
<div class="content-bead bg2 rockwell">
<div class="body-content">
<div class="body-content-sub">
<div id="content-left">
</div>
<div id="content-main">
</div>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
==更新了css ===
background-image: url(images/content-bg.gif);
background-repeat: repeat-y;
background-position: left bottom;
background-color:#FFFFFF;
Run Code Online (Sandbox Code Playgroud)
仍然没有什么我不能得到背景图像.上
html css background-image internet-explorer-7 internet-explorer-6