No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
All, I have this very basic script that's producing some odd output. What I need to do is constantly ping a server, and when/if that server stops responding, I want to write the timestamp and " timed out" to a file. We're trying to lock down a time as to … |
|
All, I have a personal script that I'm trying to write, and I've run into a small problem. The problem is that I want to be able to support a '-s' argument no matter where the argument is. I also want that argument to be allowed more than once. For … |
|
Is it possible to read the registry from VS C# 2010 Express? I don't seem to have all of the necessities in the autocomplete selections: [CODE] RegistryKey key = Registry.LocalMachine; [/CODE] I have "using Microsoft.Win32;" imported and what happens is it doesn't seem like the object is created. I've seen … |
|
I have an application that I'm trying to write in C#. This is my first application using C#, so please bear with me. I tried to create a small app with a textbox and two buttons: start and stop. The start button calls a function that iterates from 1 to … |
|
All, I have the following that I'm trying to write: [CODE] mac = open("maclisting.txt","a") tn = telnetlib.Telnet(HOST) tn.read_until(b"Username: ") tn.write(b"xxxx\n") tn.read_until(b"Password: ") tn.write(b"xxxx\n") tn.read_until(b"#", 5) tn.write(b"term leng 0\n") tn.read_until(b"#", 5) tn.write(b"sh arp\n") tn.write(b"exit\n") results = (tn.read_all().decode('ascii').split("\n")) for line in results: if len(line) > 40: print(line,) mac.write(line,) else: continue [/CODE] The … |
|
All, First, thanks for reading! I'm very new to python, and I'm trying to do something that seemingly feels impossible. I'm using Python 3.x to write a script. This script, so far, only runs Windows "net use" command and gets back drive mapping info. The problem is that I need … |