How to configure remote iis server using Python - python-3.x

We have a Windows server(iis) that we connect to using ssh(ubuntu) in python3 with paramiko library.
We want to do controls, for example:
start/restart/stop/recycle <iis|app pool>.
also we can do it with:
iisreset or etc...
but we want do that in best practice method.

Related

When i tried to get data from url using nodejs it works properly on windows but when i tried same from ubuntu server its does not work

I am using node-fetch library in nodejs for this purpose.
There is no change in script which i use in windows and ubuntu
The server is provided by Hetzner
Need to know the reason and solution

Use node.js without access to a command prompt

I'm trying to use Node.js in my school environment which blocks all use of cmd.exe on Windows, therefore I'm not able to use Node this way.
Is there any other way to use it, or an alternative (external) command prompt application I could use?
If the com.exe access is blocked in local OS, it is suggested to use virtual machine to help developing you project. Please have a look on how to use virtual machine. Virtual Box would be a nice try.
After building a virtual machine on your Windows host, you can do most of the development stuffs there(including use Node.js from cli). Hope that helps!
Cloud 9 is an online cloud-based editor. You can set a Node.js environment up there and execute app code that way. Otherwise, I'd suggest using a virtual machine or a Docker image.

How do I use NodeJS on Asustor AS-302T NAS

I have recently bought a Asustor AS-302T NAS, which is an absolutely brilliant solution for the home. One of it's most impressive features is that you can install apps which extends the ordinary behavior of a NAS. And if you are a developer you can also create your own apps.
While apps are fun, I have more interest in using my NAS as a kitchen-sink for my personal nodejs projects. In short I want to run nodejs application that I can then call from various other machines around the house. My own mini-cloud for IOT experiments.
Installing, one click only
Having installed NodeJS through App-Central I am at a loss how exactly to start using NodeJS on my NAS. The whole installation is essentially an on/off switch with no options or visible settings at all. I can find no documentation on practical tasks like uploading a nodejs application, deal with access rights or even execute it.
Under Windows or OS-X I would use npm via the command-line or shell, but Asustor is a purely html based interface (with the exception of XBMC through HDMI).
Why offer to users the option of installing NodeJS -if it's impossible to actually use it?
So my question has three aspects to it:
How do i get access to npm on my Asustor NAS
How do i get my NodeJS application running
Is it possible to run my application as a service (executed when the NAS boots)?
From the ASUSTOR Developer's Guide: apps are installed into
/usr/local/AppCentral/$APP_NAME.
NodeJS executables will be at path /usr/local/AppCentral/nodejs/bin/node and /usr/local/AppCentral/nodejs/bin/npm.
You can login to NAS via SSH and add them to PATH variable, or create symlinks...
I'm also searching for solution how to run them as a service (daemon), maybe an /etc/init.d script might help.

Remote Python Program As Local Program

I am new to python. So please pardon my mistakes/ignorance.
I have an GUI app script that I use to copy some folders from another machine to my machine and also do some other processing with the files in the folders.
Now, I would like to place this script on my machine and let other people(with no python installed on theirs machines) to execute this script. I want it to behave as if it was running on their machine. I mean, I don't want to see any errors while this script from my machine makes any changes to their files like access denied etc. It should tread D:\ drive as theirs not mine.
Is it possible somehow in python?
Thanks in advance.
I don't know the way do such a thing. But maybe you can use tools such as py2exe to convert Python scripts into Windows .exe applications.
And as the introduction
It is an utility based in Distutils that allows you to run applications written in Python on a Windows computer without requiring the user to install Python. It is an excellent option when you need to distribute a program to the end user as a standalone application. py2exe currently only works in Python 2.x.
if you use python3.0 or 3.1, this question is helpful.

Proxy settings for Selenium#library with robot Framework and VNCserver

Hi I am writing testcases in robot Framework with Selenum2Library.
I am running my Product on another VM with Proxy settings and Selenium on other machine.
If there's no Proxy I can run selenium on one and product on other.
Is there any way we can bypass proxy settings, and access the product???
I am working on Fedora and trying to access red hat ironport account.
any help is more then welcome.
THanks
You can try generate custom firefox profile in which you could set your custom firefox settings.
On my system firefox's profile (which robot framework uses by default) locates at /usr/local/lib/python2.6/site-packages/SeleniumLibrary/firefoxprofile/.
As I understand from doc from /usr/local/lib/python2.6/site-packages/SeleniumLibrary/init.py you can copy that dir, edit and then use it:
Start Selenium Server -firefoxProfileTemplate C:\\the\\path # Uses custom Firefox profile

Resources