A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-March/020948.html below:

[Python-Dev] Need Help w/ Telnet Problem

[Python-Dev] Need Help w/ Telnet Problem [Python-Dev] Need Help w/ Telnet ProblemPaul Ammann pammann@execomm.net
Mon, 11 Mar 2002 13:28:20 -0800
Hi

I've been going crazy with this problem for quite some times now, and really
need another opinion.

If I open a Telnet session to another machine, is there a way that I can
issue a command and return the result a varible? For example, if I want to
find all the processes that have python:

ps -aux | grep python

However, I would want to assign that to a variable such as:

pythonProcess = telnet.write("ps -aux | grep python")

Or, does anyone know of a better way to remotely monitor a UNIX process on a
remote machine.

Please forgive me for this... but I know Perl has a $telnet->cmd($command)
that allows a scripter to issue a command to a remote server and wait for a
reponse.

Thank you in advance for any assistance.

Best regards,

Paul




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4