<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root
	xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:og="hybs-taglib.tld"
	version="2.0">
<jsp:directive.page language="java" contentType="text/html; charset=UTF-8" />

<og:head headType="result" />
<jsp:directive.include file="/jsp/custom/result_info.jsp" />
<og:comment
	system	= "GF:エンジンサンプル"
	pgid	= "GF6400"
	title	= "OSユーザー登録"
	date	= "2008/10/27"
	author	= "Hiroki.Nakamura"
	text	= ""
	version	= "001"
/>

<pre>

<og:userInfo command="SQL">
	<jsp:text>
		select '{@HOST} ' ||
		to_char(sysdate,'HH24:') ||
		to_char( mod(to_number(to_char(sysdate,'MI'))+1,60) ) HM from dual
	</jsp:text>
</og:userInfo>

<og:equals val1="{@ACTION}" val2="/delete" >
<og:shell  debug="{@debug}"
	program  = "at \\{@USER.HM} net user {@USERID} {@ACTION} {@DOMAIN}"
	useBatch = "false"
	wait     = "true"
	stdout   = "true"
	stderr   = "true"
/>
</og:equals>

<og:equals val1="{@ACTION}" val2="/delete" notEquals="true" >
<og:shell  debug="{@debug}"
	program  = "at \\{@USER.HM} net user {@USERID} {@PASSWD} {@ACTION} {@ACTIVE} /comment:&quot;{@COMMENT}&quot; /expires:{@EXPIRES} /fullname:&quot;{@FULLNAME}&quot; {@passwordchg} {@passwordreq} {@DOMAIN} "
	useBatch = "false"
	wait     = "true"
	stdout   = "true"
	stderr   = "true"
/>
</og:equals>
</pre>

<jsp:directive.include file="/jsp/common/htmlend.jsp" />
</jsp:root>
