小编Gre*_*gle的帖子

Windows 期望命令等效

什么是等价于 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。该命令在没有管道回声的情况下工作。

powershell batch-file

5
推荐指数
1
解决办法
1万
查看次数

使用REST API在Confluence中更新页面

这就是我目前所获得的,它创建了一个新的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)

会是权限错误吗?我知道我无权删除.

jira confluence jira-rest-api confluence-rest-api

4
推荐指数
1
解决办法
6519
查看次数

终端的电池电量

当 iOS 设备插入计算机时,有没有办法从终端获取它的电池电量?我查看了 ioreg,它只显示我的 macbook 电池。

ios

4
推荐指数
2
解决办法
2173
查看次数