473,385 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Remote Command a Python Script

Hello,

I've installed Python 2.5 on my WRT54G Linksys Router. On this router
a script is executed. This script write a little Pickle database in
the router memory.

I would like to write another Python script which will be able to :

1. Stop and start the remote script from my Windows Computer. At
present I use Putty to connect to the router by the SSL, then I
manually kill the python process.

2. Retrieve the little database located in router memory and backup it
on my Window PC. At present I use WinSCP (like FTP) to get the pickle
file.

Can you help me with that (modules to use, useful code snippets)

Thank a lot,

Maxime

Sep 21 '07 #1
2 3378
Ulysse wrote:
Hello,

I've installed Python 2.5 on my WRT54G Linksys Router. On this router
a script is executed. This script write a little Pickle database in
the router memory.

I would like to write another Python script which will be able to :

1. Stop and start the remote script from my Windows Computer. At
present I use Putty to connect to the router by the SSL, then I
manually kill the python process.

2. Retrieve the little database located in router memory and backup it
on my Window PC. At present I use WinSCP (like FTP) to get the pickle
file.

Can you help me with that (modules to use, useful code snippets)
Check out pyro.

Diez
Sep 21 '07 #2
Ivo
Ulysse wrote:
Hello,

I've installed Python 2.5 on my WRT54G Linksys Router. On this router
a script is executed. This script write a little Pickle database in
the router memory.

I would like to write another Python script which will be able to :

1. Stop and start the remote script from my Windows Computer. At
present I use Putty to connect to the router by the SSL, then I
manually kill the python process.

2. Retrieve the little database located in router memory and backup it
on my Window PC. At present I use WinSCP (like FTP) to get the pickle
file.

Can you help me with that (modules to use, useful code snippets)

Thank a lot,

Maxime
or SPyRO
Sep 21 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: cwnewbe1 | last post by:
I would like to be able to add environment symbols to the Microsoft XP registry. I tried the example in the Python Cookbook by Orielly by running the script locally and it worked fine. Although I...
0
by: student | last post by:
Hi, I am working on a project where I need to start processes on remote machines, across mac, linux, windows from one server or 'manager' machine. For now, I only need to implement a 'wait'...
1
by: Swarna | last post by:
Hi all, I am trying to find out whether a particular directory is present on a remote machine or not from my local Python script in Linux . Can anyone help me with the command that i need to...
16
by: diffuser78 | last post by:
I want to write a python program and call OS specific commands in it. So basically, instead of typing in on the command line argument I want to have it in a python program and let it do the action....
1
by: diffuser78 | last post by:
I just started to write a small project in Python. I was wondering if there can be something like remote boot manager. I have to remotely start a computer. It has dual boot (WinXP and Linux)....
4
by: Tom | last post by:
I have a script which allows a user to upload a file. The script does some filename editing, mimetype checking, etc., and it's then supposed to send the file to a remote server, without any...
3
by: joja15 | last post by:
I am working on a Python script to perform as a remote computer manager. So far I have a WOL function working and I would like to add the ability to show if a machine is on or off (I figured I...
0
by: srinivasan srinivas | last post by:
This is ok. Is there any other way to find it out? Thanks, Srini ----- Original Message ---- From: Gerhard Häring <gh@ghaering.de> To: python-list@python.org Sent: Friday, 20 June, 2008...
4
by: Keith Hughitt | last post by:
Hi all, I am using someone else's script which expects input in the form of: ./script.py <arg1arg2 I was wondering if the angle-brackets here have a special meaning? It seems like they...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.