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

354 questions
211
votes
13 answers

How to get the command line args passed to a running process on unix/linux systems?

On SunOS there is pargs command that prints the command line arguments passed to the running process. Is there is any similar command on other Unix environments?
Hemant
  • 3,584
  • 6
  • 24
  • 22
55
votes
8 answers

Cross-platform way to get PIDs by process name in python

Several processes with the same name are running on host. What is the cross-platform way to get PIDs of those processes by name using python or jython? I want something like pidof but in python. (I don't have pidof anyway.) I can't parse /proc…
Alex Bolotov
  • 8,341
  • 9
  • 49
  • 56
44
votes
17 answers

In a unix shell, how to get yesterday's date into a variable?

I've got a shell script which does the following to store the current day's date in a variable 'dt': date "+%a %d/%m/%Y" | read dt echo ${dt} How would i go about getting yesterdays date into a variable? Basically what i'm trying to achieve is to…
Chris
  • 37,118
  • 43
  • 178
  • 226
37
votes
7 answers

activate RTTI in c++

Can anybody tell me how to activate RTTI in c++ when working on unix. I heard that it can be disabled and enabled. on my unix environment,how could i check whether RTTI is enabled or disabled? I am using the aCC compiler on HPUX.
Vijay
  • 59,537
  • 86
  • 209
  • 308
34
votes
9 answers

What processes are using which ports on unix?

I need to find out what ports are attached to which processes on a Unix machine (HP Itanium). Unfortunately, lsof is not installed and I have no way of installing it. Does anyone know an alternative method? A fairly lengthy Googling session hasn't…
gnuchu
  • 1,985
  • 3
  • 14
  • 8
17
votes
1 answer

HP-UX - How can I read a text file from tar archive without extracting it?

I have a tar archive which contains several text files. I would like to write a script to display (stdout) the content of a file without extracting it to the current directory. Actually I would like to do the same as: tar tf myArchive.tar…
Maxbester
  • 2,207
  • 7
  • 37
  • 64
17
votes
8 answers

Debug core file with no symbols

I have a C application we have deployed to a customers site. It was compiled and runs on HP-UX. The user has reported a crash and we have obtained a core dump. So far, I've been unable to duplicate the crash in house. As you would suspect, the…
Morinar
  • 3,340
  • 6
  • 37
  • 57
12
votes
5 answers

filename last modification date shell in script

I'm using bash to build a script where I will get a filename in a variable an then with this variable get the file unix last modification date. I need to get this modification date value and I can't use stat command. Do you know any way to get it…
odew
  • 561
  • 2
  • 8
  • 18
11
votes
1 answer

extern "C" error #2040: expected an identifier

I still struggling to compile a C console application, the compiling procedure still failing with the error below: "Main.c", line 51: error #2040: expected an identifier extern "C" void TreatReceivedSignal( int NoSignal ) ; ^ 1 error…
jamel
  • 253
  • 2
  • 6
  • 15
10
votes
3 answers

Extending Perl is breaking dynamic loading

I'm trying to compile an XS into perl [ed(ikegami): which is to say he's using ::MakeMaker's make perl to create a perl with a C vendor library statically linked in ] but when I do, the new version of perl does not support dynamic loading of…
Jonathan M
  • 16,131
  • 8
  • 49
  • 88
7
votes
2 answers

stty hupcl ixon ixoff

I'm seeing stty, not a typewritter messages on hpux (despite an interactive terminal check?), and am guessing that these are due to the stty lines in my .kshrc file: case $- in *i* ) stty hupcl ixon ixoff stty erase '^?' kill '^U' intr '^C'…
Peeter Joot
  • 7,034
  • 6
  • 44
  • 68
7
votes
2 answers

vi: Line too long

When I use vi to analyze log files, it sometimes is stuck with the error: 'Line too long'. I can watch the file using more, but that's not what I want. The command view leads to the same result and less is not installed. System is HP-UX v B.11.31 U…
6
votes
1 answer

setvbuf on STDOUT safe for other processes?

I am using HP-UX. I want to disable buffering on stdout to ensure that every line of code is printed in case of core dump with below command: setvbuf(stdout, NULL, _IONBF, 0); // turn off buffering for stdout In this case, does it also affect…
rApt0r
  • 61
  • 3
5
votes
3 answers

Stack unwinding on HP-UX and Linux

I need to get the stack information of my C application in certain points. I've read the documentation and searched the Net but still cannot figure out how I can do it. Can you point to a simple process explanation? Or, even better, to an example of…
GMichael
  • 2,604
  • 1
  • 18
  • 27
5
votes
2 answers

RSA_generate_key() using prngd instead of /dev/random or /dev/urandom

I want to use RSA_generate_key() on HP-UX 11.11. But hp-ux 11.11 does not provide /dev/random or /dev/urandom, so I need to use openssl prngd. Please let me know how to use it by default in C code. I have openssl installed and prngd is available. $…
Naga
  • 467
  • 2
  • 7
  • 20
1
2 3
23 24