Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have a bunch of Batch and Powershell scripts in my Ubuntu machine and I want to remotely execute them on windows and retrieve their results using python.
PS: I've already tried paramiko but it only works when the scripts in question are already on the remote machine.
of course it "only works when the scripts in question are already on the remote machine". You can't "remotely" execute a local program (script, whatever), it has to be on the machine where it's supposed to be executed. The solution is plain simple: upload the script on the remote machine, then use paramiko to execute it.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I am loading the python notebook through Google Collab and it seems to run local commands which some of them (gsutil, from gcloud sdk) fail, with mac / python / extensions specific issues.
This is why I am thinking that a Linux virtual box or container may help me mount the local notebooks and try to run them in that linux context,
Would this be possible? What advice do you have for me?
thanks,
Nicolae
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I am trying to Query my database after the server has started, all of the tutorials on youtube write the code inside the server and run it. I don't want this, on the official tutorial they execute the commands inside a shell. How do I do the same?
the Django docs that you mentioned here making queries is using interactive Python shell configured for your Django project, to access that you can run the following command
python manage.py shell
from there you can access all those commands
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Found here (stackoverflow) a way to handle a file selection on local host. I'm using Autoit and run a local script which writes in the file path.
But how can I run this on the remote node, when I'm using selenium hub.
Is there a way run on a remote node a command line (windows) process ?
Prefer Python example.
Thank you!
Here is a solution, basically you need to run AutoIt server on the node:
https://github.com/daluu/AutoItDriverServer
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have developed a webserver in Python (using Bottle). In this moment it runs on my laptop, but in future it will run on a board (like Raspberry).
The webserver shows a html page that allow to the users to put some data and it should save locally in a file.
Is it possible? I have to use php?
Thanks
You can just run your python apps on a Raspberry Pi. There are many tutorials on the web.
Video:
https://www.youtube.com/watch?v=VFs1dhJPYa4
Tutorials:
https://makezine.com/projects/program-raspberry-pi-with-python/
http://www.makeuseof.com/tag/10-raspberry-pi-projects-beginners/
http://www.techradar.com/news/software/learn-to-program-your-raspberry-pi-1148194/2
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I'm writing a script that I'm running through a terminal, and would like it to run BASH commands in that same terminal. All solutions that I found were geared toward connecting remotely through SSH, whereas I just need to run SSH commands on the same machine.
Can someone please point in a direction how that can be done, since Googling didn't really give me relevant results.
You might be looking for the subprocess module. You can do (for example):
subprocess.call("<bash command here>", shell = True)
For more details check the documentation.