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 Chris Miller 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. arcnon

    lost pass phase for ssl

    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?
  2. arcnon

    perl + expect

    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...
  3. arcnon

    expect and timestamp

    what do I need to do to get this to work DATE="timestamp -format %Y%m%d%H" BNAME="users.${DATE}"
  4. arcnon

    expect + grep question

    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)...
  5. arcnon

    expect + grep question

    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?"...
  6. arcnon

    what is this doing?

    Is this looping while the line is less than 2358? If not what is it doing? while ( [ $((loop)) -lt 2358 ] ) do ... done any help would be appreciated
  7. arcnon

    custom error handling

    thanks paul
  8. arcnon

    custom error handling

    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...
  9. arcnon

    error with array reference while using 'use strict'

    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...
  10. arcnon

    Regex Question - challenging

    my $line = ',blah,blah,10-SEP-04,blah,10-AUG-05'; my @r = $line=~/([0-9]+-[A-Z]+-[0-9]+)/g; print join(",", @r);
  11. arcnon

    accessing data in DBI object

    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...
  12. arcnon

    A question about eq

    I always have problems with line endings in instances like this this chomp $line;
  13. arcnon

    accessing data in DBI object

    $DataOut is the data object dbi:Pg postgres
  14. arcnon

    accessing data in DBI object

    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...
  15. arcnon

    using modules based on platform

    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...
  16. arcnon

    opinions & improvements

    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...
  17. arcnon

    opinions & improvements

    no I am converting the month to a number hince monthnum
  18. arcnon

    opinions & improvements

    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...
  19. arcnon

    sample code tutorial info

    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...
  20. arcnon

    sample code tutorial info

    right, "All Records Here" is news articles, publications etc.

Part and Inventory Search

Back
Top