macos - spindump 命令在 mac 上询问 OD 用户名
问题描述
我写了下面的shell脚本来收集mac机器上的spindumps。
#!/bin/sh
while :
do
echo "Dump collection started..."
current_time=$(date "+%Y.%m.%d-%H.%M.%S")
new_fileName="my_dump_".$file_name.$current_time."dmp"
spindump -o $new_fileName
echo "Dump collection done."
echo “Waiting for 1 minutes”
sleep 60
done
我期望在没有任何交互的情况下运行这个脚本。但是在某些间隔spindump
命令要求之后OD username
,我必须按回车键。
我怎样才能摆脱这个OD用户名问?
bash-3.2# ./spin.sh
Dump collection started...
Sampling all processes for 10 seconds with 10 milliseconds of run time between samples
Sampling completed, processing symbols...
BulkSymbolication requires OD credentials (enter a blank line to skip)
OD username:
解决方案
推荐阅读
- biztalk - BizTalk:BTAHL72XReceivePipeline 管道组件
- arrays - 在nodejs中将缓冲区数据转换为字节[]
- python - XML通过python中的套接字
- android - Ktor api 不会改变和刷新
- angularjs - 检查函数是否成功执行茉莉花
- python - OpenPyXL:是否可以在 Excel 工作表中创建下拉菜单?
- reactjs - 如何在reactjs中获取远程定位的图像大小
- sql - ORA-01790: 表达式必须与对应的表达式 LISTAGG 具有相同的数据类型
- vue.js - 使用 Vue 处理递归组件中的插槽
- python - 如何从结果中创建 python 列表