To run a python script in all the machines from one server

2006-03-28 Thread muttu2244
Hi Everyone I want to run a python script in all the machines that are connected through local network and collect the information about that machine such as HDD size, RAM capacity(with number of slots) ,processer speed etc. But i want to run a script from just the server, so that it should

copying a file from windows file system to ext2 and ext3

2006-01-10 Thread muttu2244
hi all could anybody please tell me how can i copy a file from windows file systems like FAT12, FAT16,FAT32 and NTFS to EXT2, and EXT3. Is their any function in python that we can do the above Thanks in advance Yogi -- http://mail.python.org/mailman/listinfo/python-list

multiple clients updating same file in ftp

2006-01-05 Thread muttu2244
hi all am updating the same file in ftp, through multiple clients, but am scared that two clients may open the same file at a time, and try updating, then the data updated by one data will be lost. So i have to provide some lock mechanism to that file in ftp, so how can i lock it, if one client

how to modify the csv file

2005-12-27 Thread muttu2244
hi everybody am trying to modify a particular string from a csv file. for ex say i have compName, ipAddr, MacAddr,Os sdfsdf ,129.122.12.34 , dsfiasdf, wsfdjhs hsdfdf , 123.234.34.34, dsfiasdfds, wewr etc now if i got to modify one particular line from these three rows ,

Re: how to modify the csv file

2005-12-27 Thread muttu2244
hi skip i really tried with csv module, but i dint get anything, could u plase tell me the method to modify a particular row, or atleast let me know how can i delete a row in a csv file. thanks yogi -- http://mail.python.org/mailman/listinfo/python-list

csv file how to modify the row

2005-12-27 Thread muttu2244
Hi everybody Am trying to read a csv file temp.csv, which has the below info, compName macAddripAddr opSys Chris-Dev 0003469F44CC 10.160.24.226 Microsoft Windows XP Professional Shivayogi-Dev 000D5234F44C 10.160.24.136 Microsoft Windows XP

query on python list

2005-12-27 Thread muttu2244
hi all am searching for a key in a list, am using Found = 0 for item in list: if not key == item: Found = 0 elif key == item: Found =1 Now based on the Found value i ll manipulate the list. but whenever the key and item doesnt match it makes Found

Re: query on python list

2005-12-27 Thread muttu2244
hi tim thanks for the help acutally i dint tell u the whole problem i have list of lists, for ex list1 =[ ['a','b','c','d','e'] , ['1','2','3','4'] , ['A','B','C','D'] ] and another list list2 = ['1','2','5',4] now am searching the items of list2 in list1 as below Found = True for i in

query on csv file reading and replacing

2005-12-23 Thread muttu2244
Hi everybody Am trying to read a csv file temp.csv, which has the below info, compName macAddripAddr opSys Chris-Dev 0003469F44CC 10.160.24.226 Microsoft Windows XP Professional Shivayogi-Dev 000D5234F44C 10.160.24.136 Microsoft Windows XP

how to lock a file in ftp site

2005-12-19 Thread muttu2244
hi all am trying to write some information into the file, which is located in ftp, and this file can be updated by number of people, but if at all i download a file from the ftp to my local machine, update it and then upload it back to ftp, and at the same time if some one else downloads the same

Re: problem with os.spawnle(os.P_NOWAIT,'C:\info.exe')

2005-12-16 Thread muttu2244
Ya Thanks Fredrik, i had overwritten the os in my code indeed, now its working fine. thanks a lot for that regards -- http://mail.python.org/mailman/listinfo/python-list

Re: to write set of values to a file from python

2005-12-15 Thread muttu2244
hi thanks every body for the help. Now how can check whtr the row am reading is the last row or not?? for example for this below data in csv file CompName,IpAddr,MacAddr XXX,192.178.23.11,78.23.34.23.12 YYY,192.189.22.11,89.23.43.12.34 ZZZ,192.179.24.45,89.23.34.12.45 file = open

doubt on csv file

2005-12-15 Thread muttu2244
hi all am trying to search whtr my string is found in a csv file, if its not found i have to append it at the last row of a csv file, How can i do that?? here is what am trying to do, first am trying to open it in a read mode, and checking each row by row , if it is not found till my last row, i

Re: doubt on csv file

2005-12-15 Thread muttu2244
hey thanks a lot for that it worked . -- http://mail.python.org/mailman/listinfo/python-list

problem with os.spawnle(os.P_NOWAIT,'C:\info.exe')

2005-12-15 Thread muttu2244
hi all i tried running a exe file info.exe from the spawnle cmd, its running fine from the interactive mode, but when i try to run the same info.exe file from a python file, its giving me the following error: ## Traceback (most recent

to write set of values to a file from python

2005-12-14 Thread muttu2244
hi everybody i want to write a set of values to a file from python. For ex:: the fields name will comp name, ip addr, mac addr etc. And below all these fields i ll have the values for these fields. it should look some what like this. comp name ipaddr

Re: to write set of values to a file from python

2005-12-14 Thread muttu2244
hi dennis, thanks for the help, itseems its good way to go. i tried it, and i liked the idea, but there is one problem with it. its printing each character in a seperate row where as i wanteach string in a seperate column? so how can i do that?? Any help for this. thanks and regards

Re: to write set of values to a file from python

2005-12-14 Thread muttu2244
I have tried with the following code import csv file = open(some.csv,wb) writer = csv.writer(file) list = [CompName, IpAddr, MacAddr,OpSys] for row in list: writer.writerow(row) file.close() And the result am getting in a some.csv file is as below c o m p N a m e Ip A d d

Re: to write set of values to a file from python

2005-12-14 Thread muttu2244
thanks lawrence it did work. and i have one more question for you its printing the feilds name in the following way CompName IpAddr MacAddr that means each row its printing one field name, can i make it to print each one of the field in different columns, in this way CompName

How can I refresh the windows desktop using the python script?

2005-12-13 Thread muttu2244
Hi Everybody Here i have a query for you, that is How can I refresh the windows desktop using the python script? Thanks in advance for having given a thought on my query. Regards yogi -- http://mail.python.org/mailman/listinfo/python-list

query to find name of the OS, ip addr, mac addr etc

2005-12-13 Thread muttu2244
Hi all, 1) Am working on windows XP, and is there any way i can get the whole name as windows Xp using python script? i have tried with os.sys.platform but it just gives me as win32, but can i get the whole OS name as windows Xp. If this is not possible, atleast i have a exe

How to Refresh the Desktop window with python script

2005-12-12 Thread muttu2244
Hi everybody I have couple of questions, 1) How can i refresh my desktop window(wallpaper), using the python script, after pasting some data on the desktop. 2) How can i run an exe file from the python 3) How can i get the information of a machine like computer name, mac address, ip address

Re: hi i have some doubts on a volume and the file system

2005-12-08 Thread muttu2244
Hi Tim, Thanks for that help, that code is indeed working fine thanks a ton for that regards yogi Tim Golden wrote: [EMAIL PROTECTED] i want to check the position of a volume in a particular drive. say for example in a disk i have 3 different drives: C:\ , D:\ and E:\. Now if i want

hi i have some doubts on a volume and the file system

2005-12-07 Thread muttu2244
hi everybody, i want to check the position of a volume in a particular drive. say for example in a disk i have 3 different drives: C:\ , D:\ and E:\. Now if i want to check what position is the D:\ in, how can i write the code. Means whether its in a 0th position or 1st position or a 2nd

problem with from win32com.client import Dispatch

2005-11-14 Thread muttu2244
Hi all Am trying to read an html page using win32com in the following way. from win32com.client import Dispatch ie = Dispatch(InternetExplorer.Application) ie.Navigate(https://secure.authorize.net/;) doc =ie.Document print doc.body.innerHTML with this code am easily able to read the

not able to HTTPS page from python

2005-11-09 Thread muttu2244
Hi all, Am trying to read a email ids which will be in the form of links ( on which if we click, they will redirect to outlook with their respective email ids). And these links are in the HTTPS page, a secured http page. The point is that am able to read some links with HTTP page, but am not