#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    74
    Rep Power
    12

    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
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    Houston, TX
    Posts
    383
    Rep Power
    13
    One question - what is dameware?
    Debian - because life's too short for worrying.
    Best. (Python.) IRC bot. ever.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    74
    Rep Power
    12
    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
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2004
    Location
    London, England
    Posts
    1,585
    Rep Power
    1373
    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
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    74
    Rep Power
    12
    Thank you for replies. I guess it's not that simple.

    Random
  10. #6
  11. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    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.
    Last edited by netytan; May 11th, 2004 at 03:29 AM.
    programming language development: www.netytan.com Hula

  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Posts
    624
    Rep Power
    35
    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?

IMN logo majestic logo threadwatch logo seochat tools logo