Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 10th, 2004, 01:17 PM
Random Random is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 65 Random User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 39 m 56 sec
Reputation Power: 6
Manipulating files in Production?

Hello,

I need to create a script with which i would be able to access and manipulate files from my desktop to production servers. Right now I access those files by connecting to production thrue DameWare. How would you write this script to login thrue Dameware? installing python in production is out of the question. Any help would be great.

Thanks
Random

Reply With Quote
  #2  
Old May 10th, 2004, 04:21 PM
Strike Strike is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: Houston, TX
Posts: 383 Strike User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 41 m 27 sec
Reputation Power: 7
Send a message via ICQ to Strike Send a message via AIM to Strike Send a message via Yahoo to Strike
One question - what is dameware?
__________________
Debian - because life's too short for worrying.
Best. (Python.) IRC bot. ever.

Reply With Quote
  #3  
Old May 10th, 2004, 04:25 PM
Random Random is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 65 Random User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 39 m 56 sec
Reputation Power: 6
To quote from the website "http://www.dameware.com/"

Microsoft Windows NT administration utilities incorporating a centralized interface for remote management of Windows NT/2000/XP/2003 Servers and Workstations.

Thanks for any help.
Random

Reply With Quote
  #4  
Old May 10th, 2004, 05:10 PM
DevCoach DevCoach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Feb 2004
Location: London, England
Posts: 1,203 DevCoach User rank is Captain (20000 - 30000 Reputation Level)DevCoach User rank is Captain (20000 - 30000 Reputation Level)DevCoach User rank is Captain (20000 - 30000 Reputation Level)DevCoach User rank is Captain (20000 - 30000 Reputation Level)DevCoach User rank is Captain (20000 - 30000 Reputation Level)DevCoach User rank is Captain (20000 - 30000 Reputation Level)DevCoach User rank is Captain (20000 - 30000 Reputation Level)DevCoach User rank is Captain (20000 - 30000 Reputation Level)DevCoach User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 17 h 2 m 54 sec
Reputation Power: 262
I have never heard of dameware, so the following is pure speculation.

If you normally interact with dameware through a command-line program then you should be able to call the client using the system function, or a pipe. This will work fine if you just need to run a single command and capture the output.

However if you need to be more interactive then you need something like expect. Pexpect (http://pexpect.sourceforge.net) is a pure Python port of expect, but the Windows version needs to be run under cygwin. There are other Python versions of expect that may work better on native Windows, so do a search on google.

If dameware has a C API then you could wrap it with SWIG to create a dameware python module, if this has not been done already. I did a cursory google search for "dameware and python" but it did not throw up any obvious candidates.

If there is only a GUI client to dameware then you are on your own. It is possible to control a Windows GUI with Python, but it is not for the faint hearted.

Dave - The Developers' Coach

Reply With Quote
  #5  
Old May 10th, 2004, 08:49 PM
Random Random is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 65 Random User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 39 m 56 sec
Reputation Power: 6
Thank you for replies. I guess it's not that simple.

Random

Reply With Quote
  #6  
Old May 11th, 2004, 02:24 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,532 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 38 m 15 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
Quote:
Originally Posted by Random
installing python in production is out of the question.


That line kinda through me . You want a solusion in Python but dont want to install it? Little lost sorry .

Edit: looked at the pexpect page and it looks very intersting! If it works then it should be able to do some if not all of what you want (i got the impression this is a GUI were talking about). Anyway looks fun

Good luck with the project anyway,

Mark.
__________________
programming language development: www.netytan.com Hula


Last edited by netytan : May 11th, 2004 at 02:29 AM.

Reply With Quote
  #7  
Old May 11th, 2004, 03:13 AM
sfb sfb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 447 sfb User rank is Corporal (100 - 500 Reputation Level)sfb User rank is Corporal (100 - 500 Reputation Level)sfb User rank is Corporal (100 - 500 Reputation Level)sfb User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 1 h 43 m 45 sec
Reputation Power: 9
There's no way I would try to use Python to control Dameware. Maybe, just maybe, to trigger a connection for me to use.
Editing files through Dameware with Python?

Can you mount the folders on the server as a local drive?
Code:
c:\> net use t: \\server\c$\files\stuff


Then just work with Python as if they were local files on the t: drive?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Manipulating files in Production?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway