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 Chriss 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. AlbertAguirre

    parse file AND parse column with diff delimiter

    Ok I need to parse a file but ALSO parse one of the columns in the file. The file is delimited by | but the column I am parsing is delimited by '/' Here is a sample record from the original file: 2008-08-28...
  2. AlbertAguirre

    lose varfiable setting in loop

    # i set my variable here thisvar="abc" echo $thisvar # i go into my loop here and reset the variable ls -l | while IFS=":" read f1 f2 do thisvar="xyz" done # display the supposed reset variable here echo $thisvar The result should be xyz but it remains abc Why??? How can...
  3. AlbertAguirre

    Parse output with bash script and awk

    My command returns this: Libsmbios: 0.8.0 System ID: 0x01B2 Service Tag: D*****1 Product Name: PowerEdge 2950 BIOS Version: 2.1.1 Vendor: Dell Inc. Is Dell: 1 I need to loop through each row and move the value left of the ":" to one variable and the value to the right of the...
  4. AlbertAguirre

    How do I add an element to array??

    I just want to add to the end of an array. How is this done??? Seems so simple... Heres my array: arEquipment=(albert danielle daniel); I would like to add element 'nathan' to the end. How?
  5. AlbertAguirre

    Cant copy files from vista to xp over network

    I cant copy files from a vista laptop to my xp desktop. I CAN see my desktop but I get 'you dont have permission to perform this action' when I try to paste a file onto the xp desktop. I created a login on the xp desktop that matches the vista laptop, login and password. On the xp machine I...
  6. AlbertAguirre

    file_put_contents, file lock AND append?

    I am using the file_put_contents with the append option. Code: file_put_contents("filename", "text to write", FILE_APPEND); Problem is that I want to lock the file as well as append. Php documentation says to use the "LOCK_EX" flag, however, it does not have examples. How do I pass BOTH the...
  7. AlbertAguirre

    newbie: failing IF statement

    Why does this fail??? $setType="raise"; if ($setType=="lower"){ print "in if \n"; }else{ print "in else \n"; } The output is consitantly: in if Why???
  8. AlbertAguirre

    newbie: Multidimensional array

    This seems so simple but I dont understand it. I want to print ONE element of a multi dimensional array. Here are my base arrays: @aTemp1 = ('albert', 'daniel', 'nathan'); @aTemp2 = ('danielle', 'mylee', 'rob'); Here is my multidimensional array: @aTest = (@aTemp1, @aTemp2); I want to print...
  9. AlbertAguirre

    SIMPLE query question

    I am very new to perl. How do i execute an sql without preparing it first?? Sorry about the dumb question.
  10. AlbertAguirre

    But the login and password are correct!?!?!

    hey all.. using mysql and perl at the command line. I am using a legit login and password for the db but I get this: DBI connect('dbPortal:[ip here]','[login]',...) failed: Access denied for user '[login]'@'[ip here]' (using password: YES) at /usr/local/lib/perl5/site_perl/5.8.5/DBD/mysqlPP.pm...
  11. AlbertAguirre

    change color of table cell on hover

    how!?!?!? I have spent countless hours on this. Heres my code: .subNavBox { BACKGROUND: #555555; font-weight: bold; color: #888888; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; border-style: solid; border-color: #000000; border-left-width: 1px...
  12. AlbertAguirre

    How to get the use NT login with PHP?

    In my intranet web app I need to check the users NT (windows) login. I found this code online but it fails on line 19 Any ideas on how to do this? <?php /* Getting netbios info CopyLeft 2002 (GNU GPL V2) by polo */ error_reporting(E_ALL); /* get the ip...
  13. AlbertAguirre

    MySql and 615 million records

    OK my record count is up to 615 million. In 3 months it will be over 1.2 billion. Problem: My webpage takes over an hour to display records. (Using php) 1) I know my table design is very good. 2) Using the admin tool I see that my query takes 17 seconds Then it reports that MySql is still...
  14. AlbertAguirre

    INET_ATON ipv6 compatible?

    I need to use this mysql function but I dont know if its ipv6 compatible. Anyone?
  15. AlbertAguirre

    phpmyadmin: multiple servers

    How do I configure my phpmysadmin to administer mysql databases on multiple servers?
  16. AlbertAguirre

    Scroll Position inconsitencies - save my life

    I am worn out, sick and tired of trying to display my div layer properly in IE 6. Such a simple thing, I want the div layer to appear in a specified x y coordinate even if the user scroll down the page. Why is this so hard???? Can someone tell me how to get the scroll position??? I tried all...
  17. AlbertAguirre

    how find the difference in string vars?

    $basestr="this is a test of the emergency broadcast system" $otherstrg="this is not a test of the urgent broadcast system" I just want to compare $otherstr to the $basestr, not the other way around. The difference in $otherstr is: "not" and "urgent" possible?
  18. AlbertAguirre

    Refresh/Reload a DIFFERENT window

    Hi, I am opening a pop up window that allows the user to create a directory on the file server. Once he creates it, I would like the MAIN window / page to refresh. How do I refresh a different (or main window) with javascript?
  19. AlbertAguirre

    noob question, passing string to function

    I wrote a function and I am passing my div layer id to it. This works: document.getElementById("myDivLayer").innerHTML=xmlHttp.responseText; This does not: document.getElementById(myDivVar).innerHTML=xmlHttp.responseText; Why?
  20. AlbertAguirre

    how to immediatley flush output

    I have a shell script that processes information in a for loop. The loop has an echo statement that displays each record. The problem is that the output is displayed when the for loop and script end. I would like the output of each line to display to the screen during the loop. How do I flush...

Part and Inventory Search

Back
Top