status

種類プロパティ(R)
書式 systemオブジェクト.status
解説
コマンドの終了ステータスを示します。
サンプルコード
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<style type="text/css"><!--
body { margin:0px; }
form { position:absolute; top:10;left:10px; }
--></style>
<script type="text/javascript"><!--
window.onload = function()
{
cmdObj = widget.system("/usr/bin/cal",null);
result = cmdObj.status;
document.getElementById("txtField").value = result;
}
// --></script>
</head>
<body>
<img src="Default.png">
<form>
<textarea id="txtField" rows="7" cols="32"></textarea>
</form>
</body>
</html>
実際のスクリプトをダウンロード