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 strongm 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. rickgerdes

    Pre/Post processing commands

    Some additional information: It appears that the post job doesn't run if the system cancels out, but will if it completes normally. The switch for 'run if job fails' is checked. Does veritas differentiate between Fail and Cancel? Thanks for any help.
  2. rickgerdes

    Pre/Post processing commands

    Hello folks, We've been trying to run post-processing jobs on v8.5, 8.6, and 9.0. We've had intermittent success. The systems don't seem to care whether we call our exe from a batch or directly. In v9.0 it doesn't even appear to attempt to process, in v8.6 and below it appears to run, but works...
  3. rickgerdes

    Win::OLE questions

    I've tried it as a hash, array, and string. The hash key comes across as simply '1', but the value comes out as ARAAY(0x#######). my $doc = Win32::OLE->GetObject($_); Where $_ is the full path and name of the excel spreadsheet.
  4. rickgerdes

    Win::OLE questions

    Hello folks, The office is moving a few HUNDRED Excel spreadsheets from one file server to another. Most, if not all of these sheets have links to other spreadsheets, sometimes hundreds of links. The links all include the server name, format= \\<NTServer>\file\path\to\Excel.xls We are moving...
  5. rickgerdes

    Win32::NetAdmin::LoggedOnUsers question

    Hello folks, this one SHOULD be simple, but I'm being dense: The code: use Win32::NetAdmin; my @lou; Win32::NetAdmin::LoggedOnUsers('',@lou); print @lou; The result: Usage: Win32::NetAdmin::LoggedOnUsers(server, $userRef) The question: What am I doing wrong? Other than working in Win32... I...
  6. rickgerdes

    why sizes are different???

    Actual bits versus allocated bits?
  7. rickgerdes

    application/x-www-form-urlencoded

    I believe %20 works.
  8. rickgerdes

    How Can We Send A String to Another Win Application

    I use Win32::GUITest myself.
  9. rickgerdes

    Substitution regex question

    And that did it. Thanks liuwt! Hex and control characters are making my life difficult.
  10. rickgerdes

    Substitution regex question

    I considered just ignoring the whitespace, but the regex for finding a match doesn't catch, ever, regardless of what I try to find. I'm going to try parsing the file with some of the XML parsing tools...<sigh> now I have to start asking about hashes. :)
  11. rickgerdes

    Substitution regex question

    Point. :) Unfortunately, correcting my obvious, glaring error, I now have no extraneous spaces, but I still have spaces between each letter. My test output now reads llike this:  &#9632;< ? x m l v e r s i o n = &quot; 1 . 0 &quot; e n c o d i n g = &quot; U T F - 1 6 &quot; ? > 83...
  12. rickgerdes

    Substitution regex question

    Yeah, did that one too- Here's where I am, thinking wise: open(BENT, &quot;< path to xml file&quot;) || print &quot;cannot open&quot;; binmode BENT; #Tried with and w/o this @belog=<BENT>; close BENT; $test = $belog[0]; print $test; #prints fine print length($test); #83 characters length $test...
  13. rickgerdes

    Substitution regex question

    I tried that one...no joy. Best luck I've hand so far is $line =~ s/\s+//g; Which works in testing; I dredge this from a search: $t=&quot; test test &quot;; print $t; s/^\s+//, s/\s+$// for $t; print &quot;\n&quot;; print '|'.&quot;$t&quot;.'|'; I tweaked it a hair to: $t =~ s/\s+//g; and...
  14. rickgerdes

    Substitution regex question

    Should be simple, I'm just an idiot. I have a file I'm trying read, no problems there. I dump it into an array and skim through line by line, no problem there. I try to match an expression to the line- not _usually_ a problem there. The issue is, the lines have spaces between each character...
  15. rickgerdes

    Perl2exe

    Short answer- You are building a perl compiler into the program. It's smaller than installing the entire compiler with bells and whistles. Longer answer- It needs all those dll's to process the application. If you want it smaller, reduce the number of modules you need. I dropped Net::FTP from...
  16. rickgerdes

    is it possible to emulate keyboard strokes

    Some code from my app: system(&quot;t:\\tmwin\\dbutil.exe&quot;); SendKeys(&quot;{PAUSE 5000}A{PAUSE 1000}<username/password combo>{ENTER}{PAUSE 1000}%C{PAUSE 1000}R{PAUSE 1000}%A{PAUSE 1000}{TAB 7}{SPACE}%N{TAB}{SPACE}{TAB}{SPACE}{ENTER}Y&quot;); print &quot;Database fix&quot;; Circle1a...
  17. rickgerdes

    is it possible to emulate keyboard strokes

    I've used Win32::GuiTest extensively at work for an after-hours process automation. The hard part is selecting which window you want. Straight from ASPN module documentation: use Win32::GuiTest qw(FindWindowLike GetWindowText SetForegroundWindow SendKeys); $Win32::GuiTest::debug = 0...
  18. rickgerdes

    Perl under Windows - retrieve process usage

    Personally I use the modules: use Win32::EventLog; use Win32::SystemInfo; use Win32::DriveInfo; to poll my NT/2K/XP boxes. I can't get real processor usage directly, but I use MRTG for that, so it's no big deal. I use the rest for those boxes that aren't on a permanent link, they upload a log...
  19. rickgerdes

    Need to verify a file is closed in NT

    PaulTEG- I've tried working with flock under NT in the past. I do believe that's where its going to stay. The implementation is horrible and not at all useful as far as my limited understanding goes. Until I convince TPTB to migrate to Linux boxes (which will be right after porcine bodies...
  20. rickgerdes

    Need to verify a file is closed in NT

    While not exactly what I need, I think I might be able to cobble something together from the joblist. Thanks for the pointer!

Part and Inventory Search

Back
Top