Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://public.dhe.ibm.com/software/ibmi/products/pase/rpms/bootstrap.sql #1

Open
asdz520asdz opened this issue Dec 6, 2022 · 0 comments

Comments

@asdz520asdz
Copy link
Owner

"在替換刪除行時創建或替換錶 qtemp.ftpcmd(cmd char(240));
在替換刪除行時創建或替換錶 qtemp.ftplog(line char(240));

插入 qtemp.ftpcmd(CMD) 值
('匿名 [email protected]')
,('namefmt 1')
,('液晶顯示器/tmp')
,('cd /software/ibmi/products/pase/rpms')
,('垃圾桶')
,('獲取README.md(替換')
,('獲取 bootstrap.tar.Z (替換')
,('獲取 bootstrap.sh (替換')
與數控
;

CL:OVRDBF 文件(輸入) TOFILE(QTEMP/FTPCMD) MBR(*FIRST) OVRSCOPE(*JOB);
CL:OVRDBF 文件(輸出) TOFILE(QTEMP/FTPLOG) MBR(*FIRST) OVRSCOPE(*JOB);

CL:FTP RMTSYS('public.dhe.ibm.com');

CL:QSH CMD('touch -C 819 /tmp/bootstrap.log; /QOpenSys/usr/bin/ksh /tmp/bootstrap.sh > /tmp/bootstrap.log 2>&1');

選擇
情況下(message_tokens = X'00000000')
然後'引導成功!查看 /tmp/README.md 以獲取更多信息'
else '引導失敗。有關更多信息,請諮詢 /tmp/bootstrap.log'
結果結束
來自表(qsys2.joblog_info('*'))x
其中 message_id = 'QSH0005'
按 message_timestamp desc 排序
僅獲取前 1 行;"
https://public.dhe.ibm.com/software/ibmi/products/pase/rpms/bootstrap.sql#:~:text=%E5%9C%A8%E6%9B%BF%E6%8F%9B,%E5%89%8D%201%20%E8%A1%8C%EF%BC%9B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant