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

  1. RanganathRamachandra

    Is there a way to redirect core files from the root file system?

    the daemon may be stubborn, it may be chdir'ing into / though you started it somewhere else. run it under chroot if you want the core file. if you dont want the core files just make a directory there named 'core'. i am not sure of this, but cant you set ulimit for that shell (ulimit -c 0)? i...
  2. RanganathRamachandra

    maxdsiz and recompiling the kernel

    on hpux, maxssiz happens to be one of those kernel parameters which need a kernel rebuild in order that changes in their values take effect. so what your helpdesk is suggesting is hp's recommended way of doing it.
  3. RanganathRamachandra

    Add In a file

    sorry again - as you may have noticed, i switched the filenames! here it is finally: sort -n +1 -2 fileB | sed 's/,/,<tab>/' | join -t, -12 -22 -a1 -e0 -o 1.1,1.2,2.1 fileA -
  4. RanganathRamachandra

    Add In a file

    ok that was incomplete, here is a better version that can take care of your tabs as well, but still assumes that fileA is sorted in ascending numerical order of country code: sort -n +1 -2 fileA | sed 's/,/,<tab>/' | join -t, -12 -22 -a1 -e0 -o 1.1,1.2,2.1 fileB -
  5. RanganathRamachandra

    Add In a file

    if you can remove the extra spaces (tabs?) in the first file, this might work : sort -n +1 -2 fileB | join -t, -12 -22 fileA - | awk -F, '{print $2 "," $1 "," $3 }' this assumes that fileA is sorted in the numerical ascending order of the country codes. this is what is being done: - sort fileB...
  6. RanganathRamachandra

    best c/c++ code browser for unix ?

    i have been using cscope with vi for a while now and it seems to be pretty much ok for my work. i have been too lazy to learn and use emacs or even vim (i will do that if there is no easier alternative). sometimes (?) the cscope/vi combination falls short of requirements. for example, i want to...
  7. RanganathRamachandra

    ld error while compiling

    when building a big shared library, the PA32 linker may insert a bad export stub that can make the application hang when it calls a procedure in that library (by looping back and forth between the library procedure and the that procedure's export stub, not returning to the application).
  8. RanganathRamachandra

    ld error while compiling

    i guess you are using some old linker which doesnt yet support +init. install PHSS_28871 (there is at least one known bug in PHSS_30049).
  9. RanganathRamachandra

    Vi -Editor turns black suddenly

    shell prompt is what you should get when you quit vi. probably something like "$" or "bash2.0$" or "%". its where you type "vi" to enter vi.
  10. RanganathRamachandra

    C compiler on Solaris?

    i saw cc in /opt/SUNWspro/bin on a solaris box.
  11. RanganathRamachandra

    HPUX rsh timeouts

    perhaps 30 seconds, from rcmd(3N).
  12. RanganathRamachandra

    Format MAN Output

    man zcat | col -b > zcat.txt
  13. RanganathRamachandra

    Error running Java 1.4 on hp-ux 11

    if SHLIB_PATH lookup is not enabled, use &quot;chatr +s enable&quot; on the executable to enable it.
  14. RanganathRamachandra

    Error running Java 1.4 on hp-ux 11

    further to what QJ said, run chatr on the java executable to check that SHLIB_PATH is enabled. also if you are using patch PHSS_28434 or PHSS_28436, there is a problem in the dld, due to which the dld cannot load libraries even if they exist in the search paths. this bug is fixed in later...
  15. RanganathRamachandra

    C network programming compile questions

    i guess you need to link with the socket library, add -lsocket to the link line: gcc 01LST01.o -o 01lst01 -lsocket
  16. RanganathRamachandra

    linking with a foreign library

    try the c++:microsoft forum http://www.tek-tips.com/threadminder.cfm?pid=207
  17. RanganathRamachandra

    Standard error to output and file

    1. redirect stderr to stdout command 2>&1 2. redirect stderr & stdout to file command 2>errfile 1>outfile if you want both into the same file, command 2>file 1>file or command > file 2>&1
  18. RanganathRamachandra

    linking with a foreign library

    usually with any C compiler, you can specify the header file lookup path with -I on the compile line and the library lookup path with -L (say &quot;cc -I /home/ranga/myinc/ -L /home/ranga/mylib main.c -lnewlib&quot;). i guess vc++ has some dialog box that lets you specify these paths...
  19. RanganathRamachandra

    fscanf(....) question.

    doesnt fscanf return the number of fields successfully read ? in your case, 8 would have been successfully read into c and you get 1 in sr.
  20. RanganathRamachandra

    Is there such thing as a &quot;delinker&quot;?

    i know this wont help you a lot but for the record, dlopen etc are also supported on hpux PA32, PA64, IA32 and IA64.

Part and Inventory Search

Back
Top