I'm trying to connect to a 3rd party repository in order to include a Composer package. I know my username and password for this repository, but I'm not entirely sure how I am supposed to submit my username and password when prompted. I'm familiar with Unix like OS's but still relatively new to IBMi. I understand there are some differences and I think I just may not be submitting my username and password in the correct way.
I get something like this, but after I type in my username, it just sits there for a while and then I get "Password: stty: tcgetattr: Invalid argument" and never get the prompt back ($). In the image I use "username@gmail.com" as my username. It never even gave me the prompt ($) for me to submit my username either (which it usually does in Unix). I just went ahead and tried typing it in to see if it works. I even tried submitting my password right after attempting to submit my username in the same fashion.
How are interactive scripts handled in PASE on an IBMi when the user is prompted for input? Is there a key combination I have to hit or something in order to receive control?
答案 0 :(得分:2)
5250会话不是TTY,因此如果他们假设他们在TTY中运行,很多Unix应用程序都会崩溃。我们在OpenSSL / OpenSSH中有一些处理这种情况的自定义代码,它利用ILE API Qp0zIsATerminal和Qp0zSetTerminalMode来完成stty正在做的一些事情。
更简单的解决方案是从SSH运行此代码,这提供了真正的TTY。