Start a new topic
Answered

Local Terminal -- Command Requires Sudo password

I have a connection set up to open a terminal window (not SSH; this is on the same Mac host I am running Royal TSX on).


Connection Type is Custom Terminal

Computer Name is blank


Under Advanced/Custom Commands - I have my command with "sudo ..."


Of course I'm prompted for a password.


So I set up an Instant Trigger to match on the expression "Password:" and for Parameter, I sent the $EffectivePasswored$


But when I launch this, it pauses on the password prompt -- simply pressing enter allows it to proceed but I'd like it to auto-run the command.  Can this be done?


Thanks


Best Answer

Hi Ramias,


you could set up a Key Sequence Task and define an 'Enter' press there:


This Key Sequence Task can then be assigned to your connection via the 'Tasks' tab.



Alternatively, you could just define the sequence when editing the (Terminal) Connection Settings:


Let me know if that helps!


best regards,

Christoph


Answer

Hi Ramias,


you could set up a Key Sequence Task and define an 'Enter' press there:


This Key Sequence Task can then be assigned to your connection via the 'Tasks' tab.



Alternatively, you could just define the sequence when editing the (Terminal) Connection Settings:


Let me know if that helps!


best regards,

Christoph


1 person likes this

That did it.  Thank you very much.


1 person likes this

Perfect. 

Let me know if you need anything else, and have a nice day!

Login or Signup to post a comment