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 strongm 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. rhymejerky

    Delete data

    I have mysql running on FC3. In the mysql/var directory, I see there are a bunch of host.bin.0000x (where x is a number like, 1,2,3, etc) files. They look like old data in the db. If I do a drop database in mysql, does the data in that db automatically deleted? Also, if I know those...
  2. rhymejerky

    rpm: change install directory

    Hi, I have a .src.rpm file and did a rpm -ivh to it. It creates a spec file as well as other tar file. If I run rpm -ivh again on the created binary, the resulted files are put into the default location in /etc. Is there a way to change /etc to somewhere else? I know I need to edit the spec...
  3. rhymejerky

    Computers can't ping each other

    linney and outonalimb, thank you so much for the info!! I finally got the 2 computers share. What I did was instead of just having tcp/ip in local area connection, I put in NWLink NetBios and NWLink IPX/SPx NetBIOS compatible transport Protocol. Also, I unchecked the Win ICF on my laptop and...
  4. rhymejerky

    Computers can't ping each other

    Both machines' windows ICF are unchecked. For a moment, I was able to ping my desktop from my laptop and saw my desktop in network places on my laptop, but not vice versa. After a reboot of both machines, they couldn't ping each other anymore. linney: if i start my desktop in safe mode with...
  5. rhymejerky

    readdir() problem

    I just ran the same script I posted (with a few syntax fixes) and it displayed fine on my machine. Can you run the following code in the directory that has all the .doc file. Also, make sure your dir path is good. <? $dir = "."; if ($dh = opendir($dir)) { while (($file = readdir($dh)) !=...
  6. rhymejerky

    readdir() problem

    If you want to check whether you have .doc, you can do somehting like if (!strcmp(substr($file, -4), ".doc")) { print "I got .doc file\n"; }
  7. rhymejerky

    emailing in php

    looks good, just remember to put quotes around like "From: smile@smile.com
  8. rhymejerky

    Computers can't ping each other

    I have PC-cillan on both machines, but I exit out of it when I do the ping. Unless something is running in the background that I am not aware of. Quitting the appl should take care of the software firewall issues. I am using xp pro with sp1 only (installed sp2 before, but uninstalled it coz...
  9. rhymejerky

    Computers can't ping each other

    I have 3 computers in a home network. 2 of them (Comp A and B) have wireless nics and 1 (Comp C) has a 10/100 based wired nic. All computer are connected to a D-link wireless router and can access the Internet w/o any problem. I have problem trying to create a share folder between Comp A and...
  10. rhymejerky

    emailing in php

    use the mail call.. the syntax is like mail(receipient_email, subject, body message, mail headers) The mail header is optional. You can specific the sender email address there like "From: smile@smile.com
  11. rhymejerky

    readdir() problem

    Try this, if ($dh = opendir($dir)) { while (($file = readdir($dh)) != false) { if ( (is_file($dir."/".$file) && (strcmp(".", $file)) && (strcmp("..", $file)) ) { print "file = $dir/$file\n"; } } close($dh); } This prints all files...
  12. rhymejerky

    Newbie question: How does one redirect stdout to a file?

    You can use fopen to get a file handle, and then use fwrite to write your result to a file. Check out the php website for the syntax
  13. rhymejerky

    matching the string

    how about $ans_quantity =~ /^\d{1,3}$/ this matches 1 to 3 digit
  14. rhymejerky

    Tree to XML

    I have a tree structure that represents the network topology and would like to display this tree on a browser. One thing that came to my mind is XML. I can expand and collapse the topology in a browser. Is this a good way to go? If it is, what cpan module is available for going from Tree...
  15. rhymejerky

    How java avoid deadlock ?

    I agree with Dian. Java provide you the mechanism to avoid deadlock and ensure mutual exclusion. It is up to the programmer to utilize it. You are talking more of a design problem rather than an implementation problem
  16. rhymejerky

    lots of questions about perl

    I think the reason to use tr instead of lc in the book is the author is trying to show you examples of regular expression which PERL is really good at
  17. rhymejerky

    V. large file::stat returns negative number!

    Try something like open(SIZE, "ls -al $filname |); while (<SIZE>) { if (/$filename/) { ($j,$j,$j,$j, $size, $j, $j, $j, $j) = split(" ", $_); print $size; last } }
  18. rhymejerky

    ldap_bind function problem

    Are you using openladp? What kind of php are you using? 4.2.3 uses version 2 mode and you might be using version 3 mode in your ldap. Try the ldap_set_option to see if it fixes the problem.
  19. rhymejerky

    help explain coding - thanks!

    $temp =~ s/%40/@/g; This is a regular expression to replace %40 with @ in variable tmep. It looks like someone has saved maybe an email address in $ENV{'QUERY_STRING'} from the browser. The browser replace @ with %40 when you post/get data in a form. So you need to convert it back in the...
  20. rhymejerky

    Context Switching

    So, lets say a system has 1000 cs/sec. For certain time of the day, it jumps to 5000 cs/sec. Does this means the CPU usage is higher because more work is being done? What if the CPU idle reamins at 5% most of the time for this system. I am trying to understand what a sudden increase in cs...

Part and Inventory Search

Back
Top