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...
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...
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...
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...
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...
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...
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...
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...
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 *****...
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...
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...
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...
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...
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.