Non english su command
Posted: Saturday 16th January 2021 12:44am
Hi all.
I'm making a gambas upgrader and i have a function in it that allows you to type the su password in at the start of the compile process so you do not have to when it gets to running 'make install'
It does this by when the make install command is sent to the terminal it reads the terminal output.
Now for sudo this is easy.
if you use sudo you get the following prompt...
[sudo] Password for user:
So easy peasy just monitor the last terminalview linf for text begining with [sudo] , and will be the same in all languages.
but su is different.
when typing su -c "command" you get this prompt...
Password:
And i fear it's probably a different word in all languages fo su? or am i wrong? does su command ask "Password:" in all cases?
Thanks.
Bruce
I'm making a gambas upgrader and i have a function in it that allows you to type the su password in at the start of the compile process so you do not have to when it gets to running 'make install'
It does this by when the make install command is sent to the terminal it reads the terminal output.
Now for sudo this is easy.
if you use sudo you get the following prompt...
[sudo] Password for user:
So easy peasy just monitor the last terminalview linf for text begining with [sudo] , and will be the same in all languages.
but su is different.
when typing su -c "command" you get this prompt...
Password:
And i fear it's probably a different word in all languages fo su? or am i wrong? does su command ask "Password:" in all cases?
Thanks.
Bruce