I get input as vnc: //172.16.41.101& passwd = test
What I want to do with this input:1. Extract the IP address.2. Remove the password.3. Run vncviewer with the ip and password provided.4. All this should be automated after receiving input.
extract ip and password easily. then I run vncviewer with the ip provided, but how can I pass the password to it without asking for the user password?
Assuming (by tags) that you are using vncviewer from the command line, I think you could do something like this:
echo "password" | vncviewer -autopass host:display
: vnc://172.16.41.101& passwd = test
echo "test" | vncviewer -autopass 172.16.41.101
Source: https://habr.com/ru/post/1792609/More articles:Проблема Coldfusion string:: split() - stringpython implementation 'readAsDataURL - pythonsort hexadecimal numbers of different lengths from command line? - command-lineFile transfer over TCP using Python - pythonExtension of the .NET sketching shell. - c #Writing a spec for an observer that launches an email program - ruby-on-railsWhy SQL drop statement times out - postgresqlIs it safe to store the value in a session variable and make queries on the value? - phpHow is Lisp code structured? What are packages and systems? - lispUILocalNotification shows view after notification? - iosAll Articles