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 TouchToneTommy 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: *

  • Users: nappaji
  • Content: Threads
  • Order by date
  1. nappaji

    C++ tools to find load

    I am trying to increase the speed of a tool written in C++. But, I have difficulties figuring out what pieces of code are taking more time to execute. Is there a tool that can be of use to me? Something like a "Load Runner". I am developing on the Unix/Linux platform. Thanks in advance.
  2. nappaji

    MFC/Win32 programming??

    I have about 5 years of programming in C/C++ in Unix environment but am new to programming in the Windows environment. I have used Motif/GTK for GUI development in UNIX environment. What is the most commonly used GUI tool/language in the Windows environment?? Is MFC widely used?? How is MFC...
  3. nappaji

    Floating point problem - Linux vs Solaris

    I an doing a computation where in a double value is multiplied with a long long. For ex: double a; long long b; long long res; .. .. ... res = a * b; ..... .... .. res is different on Solaris and Linux platforms Ex: if a has a value of 8.66666666666666607455 and b = 2370 Linux gives me a...
  4. nappaji

    vi - converting multiple spaces into a single space

    Hello, How do I change multiple spaces into a single space on all lines in a file using vi. I have done this before but dont seem to remember. I open the file using vi, and used to type in something like this :%s/ \+/ /g but this dont seem to work. Please help.
  5. nappaji

    C++ equivalent of a 3 dimensional array

    How do you declare a 3-dimensional array in C++? For ex: int abc[100][20][5]; Can it be done through vectors?? or what built in type can I use?? Also, if I have to do dynamic memory allocation, i.e. not hardcoding the array sizes, how do I do it in C++??
  6. nappaji

    realloc help

    The following code gives me a segmentation fault. I thinks its an issue with the syntax of realloc. Please advise. #include <stdio.h> #include <stdlib.h> main() { int **arr; int i,k, j; arr = (int **) malloc (3); arr[0] = (int *) malloc (2); arr[1] = (int *) malloc (2)...
  7. nappaji

    converting a multidimensional array into pointer logic

    I have a piece of code that has many variables declared like abc[1024][1024][10]; Now, i want to increase the size of all these variables to abc[2048][2048][10]; but, whien i compile and run the program, I am getting a segmentation fault. I believe this is beacuse, it is running out of...
  8. nappaji

    VNC Problem

    I am trying to start a VNC server on a SunOS 5.5.1 machine, but I am getting the following error. ld.so.1: Xvnc: fatal relocation error: file Xvnc: symbol stat64: reference symbol not found Please help.
  9. nappaji

    SCSI or IDE ??

    I have a Sun solaris 2.5.1 Ultra 5 machine. I want to know if the disk inside if that system is IDE or SCSI type?? Is there acommand to determine this?? Please help.
  10. nappaji

    csh script help - capturing stdout and stderr

    I am trying to write a csh script to execute the rsync command periodically. But, I donot know how to capture the standard output and standard error. My ultimate goal is to capture this stdout and stderr and mail it to the user. How can I accomplish this?? I tried to so something like this
  11. nappaji

    Sending email thro' C program

    How do I send an email through a C/C++ program?? Ex: If I want to send the string &quot;Hello World&quot; to abc@hotmail.com, what utility do I use?? Please help.
  12. nappaji

    creaking directories using mkdir function

    On the unix command prompt, we can create multiple nested directories using the &quot;mkdir -p&quot; command. i.e. if I want to create a directory ABC, then a directory 123 under ABC, then a directory xyz under 123, I can accomplish this using one single command using mkdir -p ABC/123/xyz I...
  13. nappaji

    Openwin on dual monitors

    I have my Sun Solaris 5.5 machine connected to dual monitors. I want to bring up openwin session on both the monitors simulaneously. I tried doing the openwin -dev /dev/fb0 -dev/fb1 but it kicks me off. openwin doesnot start at all. Is there any other way of doing it?? or is there anything...
  14. nappaji

    Getting the file size from ls -l command

    Hello, When I do a ls -l command, the 5th column gives me the file size. How do I extract this column using cut or some other command. I am a novice to awk . How do I do it in awk?? Is there another way to check the file size using scripting??? Thanks
  15. nappaji

    Zombie process

    Hello, I have a zombie process on my system. I see the parent process (owned by some other user)running, but am unable to kill the parent process even as root. The parent is not the &quot;init&quot; or any other system process. Its just another simple GUI program that is running. Is there...
  16. nappaji

    Taking a Sun solaris 2.5 system off the network

    Hello, I have a Sun OS 2.5 system which is hooked onto my company's netowrk. The network is going down for a weekend and I need to temporarily make the system a standalone system. After the weekend, I;ll have to put it back on the network. Can anyone please let me know what files need...
  17. nappaji

    how check a file size

    Hello, I have written a csh script to generate a file using a certain command. I want to check to see if the file has been generated successfully. If there were not errors, then the file size would be > 0 , else it would be zero. How do I check if the file size is zero???
  18. nappaji

    HPUX 11

    If a machine is running HPUX 11.0, does that mean its a 64 bit machine??
  19. nappaji

    determining processor speed and type

    Hello, Is there a commond to determine if the HP machine I am using is a 64-bit machine or a 32-bit machine??? Also, how do i determine the processor speed?? Thanks
  20. nappaji

    Viewing log files

    What tools do I use to view the files under /var/stm/log/sys directory. The files under this directory are activity_log diaglogd_activity_log memlogd_activity_log scan_hw_log If I execute the command &quot;file <filename>&quot; it gives me as &quot;awk program text&quot;.

Part and Inventory Search

Back
Top