the person who created our keys for ssl has left. We had to restart the server but ssl will not come up without entering the pass phase. Is there anything that can be done to remedy this being no one knows the passphase?
I have a perl cgi that I am trying execute a expect script from.
I set the expect script to www
in the perl script I
chdir() to the script path and
`expect ./script.exp`;
but it isnt running btw script.exp does run from the commandline so I am assuming I am having permission problems.
How...
when you type "ps -A |grep rad" it returns 1 line
"6992 p2- S 0:08.64 radiusd"
what I need is "6992" or whatever the number is at the time
and set it to a variable so I can use it to send a kill statment to the server
if your wanting to know exactly what I am trying to do
I am ssh(ing)...
what I want to do is find a pid.
Grep the number to a new variable ($PID)
then kill that process.
my broken attempt
set varReturned send -- "ps -A |grep rad\r"
set PID "$varReturned |grep ([0-9]*)"
send -- "sudo kill $PID\r"
it error says:
wrong # args: should be "set varName ?newValue?"...
what I am tring to accomplish, is create a sub that I can pass my custom error data.
I am looking for a better way of pulling it off.
error('error:',"Incorrect interface call should be 'RST'").die;
sub error{
print join("\n", @_)."\n";
}
Is there a flag that I can use to pass the line...
I think it is a matter of experience. When I first began to my perl journey I never used objects and really saw no reason to use them. As I became more experienced I realized there were several ways to cut down on on the confusion in accessing and passing references all led back to objects now I...
not the most economic scriplet but here is a solution.
$Query_Statement="select fname,lname,address,city,state,zip,phone,email FROM main order by lname,fname;";
my $sth = $dbh->prepare($Query_Statement);
$sth->execute();
my @array;
my $dataObjRef = \@array;
while( my...
I cant seen to figure out how to access the the data in the DBI object and get it back in.
$Query_Statement="select fname,lname,address,city,state,zip,phone,email FROM main order by lname,fname;";
my $DataOut = $DBHandle->prepare($Query_Statement);
$DataOut->execute();
foreach my...
what is the best stradigy to use modules and the like based on platform?
ie
use Term::ANSIColor qw(:constants);
unix & os x
use Win32::Console::ANSI;
windows also requires this to display ansii color
I am using Config & $^O to determine the platform and use ifs to use certain platform...
I dont know anything really about the vb.net framework. I purchased a couple of books and have worked through a few of the examples BUT I haven't been able to find find any sample code that directly relates to what I am trying to accomplish.
If there is a better way... I am all for it. I dont...
ok here is my first DOTnet page is there a better way to do this?
<%@ Page Language="VB" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.SqlClient" %>
<html>
<head>
</head>
<body>
<script runat="server">
Function GetDataForYear(ByVal year As String)
Dim...
As you can see there are some months that dont have any entries. And you can have a variable amount of articles per month.
On a side note-- connecting to the database isn't the issue. I have 500,000 lines of cgi's that I have to convert to this crap. So I chose the easiest of the lot. It is 24...
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.