什么是等价于 linux 在 windows 中的期望?当上一个命令提示时,脚本是否可以发送密码?
runas /user:admin net user username /add
Run Code Online (Sandbox Code Playgroud)
尝试echo XYZ | runas ...我得到了1326 Logon failure: unknown user name or bad password。该命令在没有管道回声的情况下工作。
这就是我目前所获得的,它创建了一个新的Confluence页面.它没有更新它.它也将它发布在根空间中TST,但我希望它在TST/space1/subsection2/updateThisPage.
curl -v -u admin:admin -X POST -H Content-Type: application/json -d "{\"id\":\"123456\",\"type\":\"page\",\"title\":\"new page\",\"space\":{\"key\":\"TST\",\"title\":\"updateThisPage\"},\"body\":{\"storage\":{\"value\":\"<p>This is the updated text for the new page</p>\",\"representation\":\"storage\"}},\"version\":{\"number\":3}}" http://localhost:8090/rest/api/content?spaceKey=TST&title=updateThisPage
Run Code Online (Sandbox Code Playgroud)
这是我收到的错误消息
{"statusCode":400,"message":"A page with this title already exists: A page already exists with the title new page in the space with key TST"}
Run Code Online (Sandbox Code Playgroud)
会是权限错误吗?我知道我无权删除.