Notities

Notities

ing. M.A.C.M. (Martijn) van den Boom

Computer Infrastructure Engineer
ingenieur, docent en mentor

Social Media Links:

ing. M.A.C.M. (Martijn) van den Boom

1 minuut leestijd

Type in the terminal of Visual Studio Code # git init # git add . # git commit -m &ldquo;initial commit&rdquo; Create a new repository on GitHub # git remote add origin <the new .git URL> Example: # git remote add orign https://github.com/martijnvandenboom/Java_tools.git # git push -u origin main

ing. M.A.C.M. (Martijn) van den Boom

1 minuut leestijd

To make a script to run remote commands in a client server network. import subprocess def ssh_exec_command(hostname, username, command): ssh_cmd = ['ssh', f'{username}@{hostname}', command] ssh_process = subprocess.Popen( ssh_cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True ) output, error = ssh_process.communicate() if error: print(&quot;Error:&quot;, error) else: print(&quot;Output:&quot;, output) # Replace these with your actual credentials and command...

Recente berichten

Categorieën

Over Mij

Sponsor me link:
ko-fi.com/martijnvandenboom
paypal.me/ingmacmvandenboom
buymeacoffee.com/ingvdboom