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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by randy4126

  1. randy4126

    Getting stacktrace in running program without a debugger

    1) Are you using XLC or gcc? gcc 2) Do you have strace or truss? You can use them to attach to the process. strace - Yes truss - Yes 3) You could also try /sbin/pstack. doesn't exist ont the system. So how would I use truss or strace from withinside my program? Randy
  2. randy4126

    Getting stacktrace in running program without a debugger

    I am looking for some help help getting a stack trace in program that is executing. In our new logging routines we want to include that stacktrace so we are able to tell what program that called the one of library functions is having the the problem. We are running on a system using AIX 5.1...
  3. randy4126

    Mutli joins to a single table.

    After thinking about what you were saying I added that to my query and it worked. You are a genious. Thanks. This was my PHP statement $line = mysql_fetch_array($result, MYSQL_ASSOC And now I see it was getting confused because the coulmn was being named the same. Wow that would have...
  4. randy4126

    Mutli joins to a single table.

    Thanks for your reply. I have found that my query does work but it is the php doing something very woerd and droping columns. I gues that is a question for another forumn. Thanks Randy
  5. randy4126

    Mutli joins to a single table.

    I have a table that has two different ID's that link to another table. I want to be able in a single query pull back all the information I need. My we host is running a fair old version of MySQL so I can't do sub quieries. Here is what I came up with and everytime it runs it throws away one...
  6. randy4126

    Net::Ftp Problem.

    Thanks for your suggestion. What I did is I got I directory listing from the remote machne by using the $ftp->dir() and then parsed out the time stamp. Then I used the utime() so set the files time stamp. Creating a file and FTPing seemed to me to be a little much. Thanks for you help. What I...
  7. randy4126

    Net::Ftp Problem.

    Does anyone know how if you are using the Net::FTP module, How I can preserve the the time stamp from the original file? Thanks. Randy
  8. randy4126

    Net::FTP using the third argument in the get method.

    I am having trouble using the third argument in the get method(where in bytes). Every time I use it never downloads the rest of the file. Is this not supported by every ftp server? I am trying to avoid having to send a larger file over and over. I on;y want the new part of the file. Randy
  9. randy4126

    Insert Select problem

    That was it. I didn't notice I had the order wrong. I remember reading that in the docs now. Thanks a LOT! Randy
  10. randy4126

    Insert Select problem

    I am trying to insert data into a table from another table. The problem comes in with the unix timestamp column. It always converts the the date to 0000-00-00 but if you run the select query by itself it works just fine(Gives the correct date). Could someone see what I am doing wrong. Here...
  11. randy4126

    Sending a Dataset to stored proceedure.

    Let me give some back ground on what I am doing. The processes I am running are on a linux machine. From there I am calling with an insert query to add the records in the table. I need to update if the key exists if the key doesn't exist do an insert query. the process will repeat every 5...
  12. randy4126

    Sending a Dataset to stored proceedure.

    Hi, I am new to the stored proceedures and what I would like to do is send a data set to a stored proceedure. I don't know if this is possible. I though maybe you could do this if the stored proceedures had arrays. But I have looked in the books and found nothing on arrays. Below is an...
  13. randy4126

    Nested anonymous hashes

    I found the problem. I was populating the hash wrong. Once I fixed that it worked great. Thanks for your help. Randy
  14. randy4126

    Nested anonymous hashes

    I recieve this error every time I run this piece of code. "Can't use string ("0") as a HASH ref while "strict refs" in use at ./CMTS_Collector.pl line 427." I am new to anonymous hashes so any help you can give would be appricated. foreach $oid (keys %oids)...
  15. randy4126

    Does anyone know if there is a modu

    I'm sorry what I meant is the log file roles everynight. But i would like to sync the local file with the remote file every 5 to 10 minutes. Thanks Randy

Part and Inventory Search

Back
Top