Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. whitshea

    Finding a char in a String, multiple times

    I am using vbscript to verify an inputted string. This string is 8 chars long. I need to identify if, within the first four characters, a Z or z is present, and if so, I need to return the location of this Z. Any ideas how I can return the location of all the Z's located in the first 4...
  2. whitshea

    regexp/match help

    Try something like this: Dim testString, objRegExp testString = "blahABCblah" Set objRegExp = new regexp objRegExp.Pattern = "ABC|HIJ|LMN|STU" If objRegExp.Test(testString) Then MsgBox("TestString contains one of the substrings") End If
  3. whitshea

    using Telnet module, having trouble passing the prompt

    Amazingly, I changed the prompt to '/>/', and it worked. Thanks again for the help! Really appreciated!! Whitney
  4. whitshea

    using Telnet module, having trouble passing the prompt

    Thanks for the assistance. I put in the error checking code, and it turns out that the command is being sent to myhost and output is being generated, according to the input.log file. But the output of the command is not being written to my variable: @lines = $t->cmd("/usr/bin/who")...
  5. whitshea

    using Telnet module, having trouble passing the prompt

    No embedded / characters. Actually, I got the following version to work on one box after changing the prompt to />$/ and adding a "waitfor" after the login. I'm having a different problem on another box. The script is successfully logging into the box, and giving the prompt, but it...
  6. whitshea

    using Telnet module, having trouble passing the prompt

    I am just trying to get a simple script to work. Currently it is giving the following error: "timed-out waiting for command prompt at ./test_telnet.pl line 11" I don't know what I'm doing wrong... the prompt for this host is: myuser@myhost{myfolder}> Here's what I'm trying... Please...
  7. whitshea

    using "do" to include a file with variable declarations

    I have a perl script which telnets to remote hosts and starts up other scripts on these hosts. Currently, I have a text config file, which I have to read in line by line and parse to get host names, user names, passwords, etc. I would rather just have this info in a separate file, with the...

Part and Inventory Search

Back
Top