我如何'将'控制台/终端视图'附加到应用程序输出,以便我可以看到它可能会说什么?
如何在不杀死应用程序的情况下从应用程序输出中分离出来?
通常,如果你使用命令行启动一个健谈的应用程序,你会看到各种精彩的输出.但是,让我说我有一个特别繁琐的编程运行像KINO,我想在任何给定时刻查看其输出,而不通过命令行重新启动它我不能,至少我不知道如何.
我希望能够打开一个text/html文件并将其内容写入容器,HTML div或asp标签都可以.如何在相关页面的C#代码文件中执行此操作?
我想创建一种只对页面内的单个DIV起作用的光/厚盒子.当我开火时,第一个div(phantom_back)按照我想要的方式行动,但是第二个,phantom_top在phantom_back之后设置自己,无论它的z-index和定位如何.
我究竟做错了什么?
这是我到目前为止:
<html>
<head>
<script type="text/javascript">
<!--//
function phantom_back(image)
{
document.getElementById('phantom_back').style.zIndex = 100;
document.getElementById('phantom_back').style.height = '100%';
document.getElementById('phantom_back').style.width = '100%';
phantom_top();
}
function phantom_top(image)
{
document.getElementById('phantom_top').style.zIndex = 102;
document.getElementById('phantom_top').style.height = 600;
document.getElementById('phantom_top').style.width = 600;
document.getElementById('phantom_top').style.top = 0;
document.getElementById('phantom_top').style.left = 0;
}
//-->
</script>
</head>
<body>
<a href="#" onclick="phantom_back()">Change</a>
<div style="height: 700px; width: 700px; border: 2px black solid; margin:0 auto; background-color: red;" id="overlord">
<div style="height: 10px; width: 10px; position: relative; z-index: -1; background-color: #000000; filter:alpha(opacity=50); -moz-opacity:0.5; -khtml-opacity: 0.5; opacity: 0.5;" id="phantom_back"></div> …Run Code Online (Sandbox Code Playgroud) 我正在努力创建一个脚本,为我创建图像库.
当我运行我所拥有的它告诉我
No such file or directory at photographycreate line 16.
------------
(program exited with code: 2)
Run Code Online (Sandbox Code Playgroud)
这是我到目前为止所获得的代码.
#!/etc/perl -w
#CHANGE THIS
$filecategory = "cooking";
$filenumber = 0;
#$filename = "photography";
$imagedirectory = "\"/media/New Volume/Programming/kai product/media/photography/".$filecategory."/images/\"";
$galleryfile = "\"/media/New Volume/Programming/kai product/pages/".$filenumber."_".$filecategory."_gallery.html\"";
@imagelocation = <$imagedirectory/*>; #*/
$filecount = @imagelocation;
while($filenumber < 3) {
open GALLERY, "+>", $galleryfile or die $!;
print GALLERY ($filecount."\n");
print GALLERY ($imagedirectory."\n");
print GALLERY ($galleryfile."\n");
close GALLERY;
++$filenumber;
}
Run Code Online (Sandbox Code Playgroud)
我想要它做的是创建文件,打开它,写东西,然后关闭/保存它.我怎么能用我所拥有的呢?
这是修复:
#!/etc/perl -w
use Fcntl; #The Module …Run Code Online (Sandbox Code Playgroud)