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. perlnewbie9292

    Perl client side authe using certicate

    Hello all, I'm having trouble getting the following code to work and at a point where I am stuck. I am trying to perform client side authentication using a certificate during a POST request. I'm only interested in sending the client cert to the server and don't really need to check the server...
  2. perlnewbie9292

    Passing a self-signed cert

    Hello all, Pretty new to PowerShell and hoping someone can point me in the right direction. I need to perform a POST request and have to pass it a locally stored cert (x509) during the POST request, for authentication. What is the best way or way to accomplish this? I've found plenty of...
  3. perlnewbie9292

    Ubuntu Windbind allow local account to logon

    Hello all, I'm pretty new to both Ubuntu and Ubuntu in a mix Windows environment. I have my Ubuntu boxes all authenticating successfully using my AD. What I am now trying to do and having problem with is the following: Trying to setup a local non AD user on the Ubuntu box and it's still trying...
  4. perlnewbie9292

    Catch error from calling another program

    Hello, I'm a complete newbie to powershell. I'm trying to catch the output of the command that I'm calling, which is pscp binary. I would like to check for errors returned when the binary is executed. Depending on the error I would like to trigger an event, like attempt to re-transfer the...
  5. perlnewbie9292

    monitor url wiht the help of proxy

    Not sure what it is you are trying to actually do. If all you are trying to do is get a result or content, try this. #!/usr/bin/perl use strict; use warnings; use LWP::UserAgent; use HTTP::Request::Common; my $proxy = 'http://proxyIP:Port/'; my $contentget = 'http://www.google.com'; my $ua...
  6. perlnewbie9292

    Hashes help.

    Hello all, I am kinda stuck with what I am trying to do. Here is my code. I am creating a subroutine, which will be going into a larger script. Where I am stuck is trying to figure out the best to tackle to following problem. #!/usr/bin/perl use strict; use Tie::File; my $line; my $i=0; my...
  7. perlnewbie9292

    KeyUp Event keeps firing events how to limit

    Hello, New to C#, I have been trying to figure out why the keyUP event I coded continues to trigger and how to suppress it. KeyUp code that I am using is shown below. I have tried handled, suppressKeyPress, but neither keep it from firing once it performs the performClick action. What I am...
  8. perlnewbie9292

    add and path to call third party binary in solution

    that worked, your a genius. Thank you very much for your help!
  9. perlnewbie9292

    add and path to call third party binary in solution

    Hello, I am pretty new to C#. I am trying to figure out a few things. I dragged a binary (which is console application) to my project. This cosole APP will be required to be installed/be part of the project when I do a build. Is this the right to do this, I want it to be copied when the user...
  10. perlnewbie9292

    Perl appending data to certain location in file

    What i've been trying to do is. Grab the lines that start with ^RCPT TO: before the line that starts with ^DATA and append them to the line after the To: section. example: MAIL FROM:<Megan@bankofdeerfield.com> SIZE=1016 BODY=7BIT RCPT TO:<testuser36@testdomain.com> ******Grab this line *****...
  11. perlnewbie9292

    Perl appending data to certain location in file

    Hello I have the following script with I have been pulling my hair out trying to get the second part working. Please keep in mind I am pretty new to Perl. I am having trouble figuring out how to capture the lines which contain the string "RCPT TO" and add each of the captured lines to the...
  12. perlnewbie9292

    Getting rid of the first 0 digit when counting

    Sorry used the wrong example meant: if ( $hour = 2..12 ) { DOING STUFF HERE }
  13. perlnewbie9292

    Getting rid of the first 0 digit when counting

    Hello everyone, I am pretty new to Perl and hoping someone can please point me in the right direction. I am trying to do stuff based on timestamp from the hour field. I am doing something like this: if ( $hour = 2..9 ) { DOING STUFF HERE } If there anyway to either only show single...
  14. perlnewbie9292

    Question about properties block

    Hello I am new to C# and I am going through some examples. I ran across this example for passing data between forms and I am not quite sure with the extra stuff after the return (memberVariable) Specifically the == 0 ? 0 : totalHoursDecimal / numOfChargeInteger; part? Is there another way to...
  15. perlnewbie9292

    timing out a check is it takes xx seconds

    Hello, trying to figure out how to timeout/wait xx seconds for a command to run/return before it dying out and just printing command took to long etc. Not an external command in this case I am running a simple -w to check if two different directories are writeable. The problem is that...
  16. perlnewbie9292

    Help replacin deci to eq Char string in a line

    Hello everyone, I am trying to normalize some data files that we generate which have a mix of ascii and hex chars in the header lines. I am new to Perl and having problems figuring out why 1) I am only able to grab the first hex match in each line instead of all/every occurrence of a hex value...
  17. perlnewbie9292

    Printing all lines between to key words

    Hello Perl experts, I am with no luck been trying to print all lines between two keywords that I have defined. Not sure what the heck I am doing wrong. I have a variable "$linesFromFile" which contains all data from a file. If I print the $linesFromFile I get correct results. Now what I am...
  18. perlnewbie9292

    Waiting before executing $SIG{INT} sub

    Hello Perl experts, I am pretty new to Perl and trying to figure out how to do the following. I have a script which I've added a subroutine that intercepts $SIG{INT} (control -c) key combination. Now is there anyway/how can I tell my subroutine to get to a certain point in the script...
  19. perlnewbie9292

    Only print if there is a match

    Hello Perl experts, I was hoping someone can help me with the following problem which I am stuck and have not had much luck trying to get to work. The problem that I am running into is that I only want to "print" if the file that I am reading contains the ^Subject and ^Content-Type strings, if...
  20. perlnewbie9292

    Edit file in place and force it to be read again

    Hello Perl experts, I am not sure if I am going about this the best way and hoping that someone here can point me in the right direction. What I am trying to do with no success is: I have a .txt file which gets entries inserted into it with directory paths. Now what I would like to do is read...

Part and Inventory Search

Back
Top