Questions tagged [hp-ux]

HP-UX (Hewlett-Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on UNIX System V (initially System III) and first released in 1984.

HP-UX (Hewlett-Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on UNIX System V (initially System III) and first released in 1984.

Resources

368 questions
4
votes
3 answers

sed whole word search and replace

How to replace whole words in string sed whole word search and replace with sed in HP-UX (B.11.31)? $ echo "bar embarassment" | sed "s/bar/no bar/g"; "\bbar\b" does not work "\" does not work "[[:<:]]bar[[:>:]]" does not work
Toru
  • 41
  • 2
4
votes
3 answers

Simple C code works fine on HPUX but segfaults on Linux. Why?

I have not done any serious C in a long, long time and would appreciate a quick explanation. The following code compiles and runs fine on HP/UX. It compiles without any warning on GCC 4.3.2 in Ubuntu (even with gcc -Wall), but segfaults when run…
Tom
  • 43
  • 2
4
votes
2 answers

Why is virtual memory allocated with malloc not released?

Given this C program where the private virtual memory is printed: #include #include #define _PSTAT64 #include #include #include void pstatvm() { struct pst_vm_status pst; …
Jose Luis
  • 59
  • 4
4
votes
1 answer

How to test tuned oracle sql and how to clear clear system/hardware buffer?

I want to know the way to test right sqls before tuned and after tuned. but once I executed the original sql, I got results too fast for tuned sql. I found below... How to clear all cached items in Oracle I did flush data buffer cache and shared…
seeun
  • 41
  • 3
4
votes
2 answers

hp-ux how to get 2 hours ago bash datetime

we are using hp-ux servers we need to get 2 hours ago datetime value in bash shell script ? how can i do that any experiences ?
soField
  • 2,536
  • 9
  • 36
  • 44
4
votes
2 answers

c: unsigned long long being assigned wrong value on HP-UX Only

Had a bit of trouble coming up with a title for this question. I recently fumbled in to the world of C. I have a little bit of code that basically shows the capacity and free space of a drive. It works fine on a few different Linux distros I've…
Ruairi O'Brien
  • 1,209
  • 5
  • 18
  • 33
4
votes
1 answer

gdb7.6 have no core file handler recognized format

When I used gdb7.6 to analyse the corefile,gdb print the following error: "./core: no core file handler recognizes format" My Environment: HP-UX hp12161 B.11.31 U ia64 0546304299. Compiler:gcc4.7.2. gdb7.6 Configure=./configure…
4
votes
1 answer

php disk_total_space() minus disk_free_space() does not equal occupied space

I wanted to check space available on the storage, where I'm storing users' attachments. I went with disk_free_space() and disk_total_space(). The result is: Free space: 5.47 GB Total space: 5.86 GB So the space occupied = 0.39 GB. I also looped…
Taz
  • 3,718
  • 2
  • 37
  • 59
4
votes
4 answers

How to use single quotes inside awk statement that is surrounded by single quotes?

I'm having issues implementing this awk statement that I need for my script: rsh fooDNS ' ... BROADCAST_IP_ADDRESS=$(/usr/sbin/ifconfig $IF_NAME | grep broadcast | awk '{print \$6}') ... ' The issue here is that the statement above is…
Justin
  • 742
  • 5
  • 17
  • 34
4
votes
5 answers

How to get around not being able to use using namespace std; in C++

I've encountered this issue while trying to port my C++ source code from HP-UX to Linux. When I try to compile the C++ source code on Linux, what happens is that it complains that components (from the standard C++ library) don't exist. Placing the…
Justin
  • 742
  • 5
  • 17
  • 34
3
votes
1 answer

Core dump not in sync with gdb stack trace

I have a program which crashes due to a segmentation fault. The core file is produced. running the core in gdb gives me the following: HP gdb 6.1 for HP Itanium (32 or 64 bit) and target HP-UX 11iv2 and 11iv3. Core was generated by…
rahul
  • 2,269
  • 3
  • 28
  • 31
3
votes
0 answers

Unable to build a working FIPS capable OpenSSL on HP-UX

I am building openssl-1.0.2f with openssl-fips-2.0.12 (I am going to talk about this configuration in the following lines, but at the end of the post I'll specify all the configurations that I tried), on HP-UX11.31 (pa-risc2 ([HPE]: pa-risc1.1…
CristiFati
  • 38,250
  • 9
  • 50
  • 87
3
votes
1 answer

HP-UX Itanium Compare and Swap

I am developing C/C++ cross-platform code, and the last platform is Itanium based HP-UX. Relevant machine an processor information can be found at the end of the question. I need to implement or find an atomic compare and swap for the machine and…
Maria
  • 565
  • 6
  • 20
3
votes
1 answer

localtime() returning ambigious

I wrote the below code and tested it out on different platforms. I got different results on HP-UX IA64,as compared to other platforms. Code: #include #include #include int main(void) { time_t t; struct tm *gmt,…
Phalgun
  • 1,181
  • 2
  • 15
  • 42
3
votes
5 answers

C++ std::string Constructor

any thoughts on this would be appreciated: std::string s1 = "hello"; std::string s2 = std::string(s1); I'd now expect these two strings to be independent, i.e. I could append ", world" to s2 and s1 would still read "hello". This is what I find on…
christopherlumb
  • 141
  • 2
  • 4
1
2
3
24 25