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
1
vote
2 answers

Trying to test space in filesystem on Unix

I need to check if I Filesystem exists, and if it does exist there is 300 MB of space in it. What I have so far: if [ "$(df -m /opt/IBM | grep -vE '^Filesystem' | awk '{print ($3)}')" < "300" ] then echo "not enough space in the target…
Buzkie
  • 859
  • 3
  • 11
  • 21
1
vote
4 answers

Java memory consumption, "top" and HP-Ux

We ship Java applications that are run on Linux, AIX and HP-Ux (PA-RISC). We seem to struggle to get acceptable levels of performance on HP-Ux from applications that work just fine in the other two environments. This is true of both execution time…
Gareth
  • 311
  • 3
  • 6
1
vote
1 answer

Getting the list of arguments passed to a method in unix

I have a shell script that is calling another script passing some variable number of arguments. One of the argument(dont know the position of the argument) will be name "temp". In another script,i need to test if any of the argument recieved is…
6055
  • 439
  • 1
  • 4
  • 14
1
vote
1 answer

How to use plock(HPUX) on Linux

I am porting a HP-UX program to Linux. There IS plock(PROCLOCK); Should I use mlock() to instead of it? Also the original code did not call plock(UNLOCK), not sure why, but I should add munlock()?
atu0830
  • 405
  • 7
  • 15
1
vote
1 answer

HPUX atof doesn't convert string to double

I'm fetching the version number of an hpux machine and trying to convert it to a float using atof, but this happens: #include #include int main(int argc, char *argv[]) { struct utsname u; uname(&u); …
David Mulder
  • 7,595
  • 11
  • 45
  • 61
1
vote
1 answer

How to get name of process from pid in HPUX 11.11?

In HPUX 11.31 this works: #include char* tmp = (char*)malloc(256); pstat_getcommandline(tmp, sizeof(char)*256, (size_t)1, (int)pid) But on HPUX 11.11 pstat_getcommandline isn't defined in /usr/include/sys/pstat.h. I've tried calling…
David Mulder
  • 7,595
  • 11
  • 45
  • 61
1
vote
1 answer

handling unexpected bash command output

I am attempting to handle an unexpected output from a command within a for loop. I am using a proprietary unzip utility (mfunzip), however when the utility encounters a corrupt file, it begins to echo out an endless "Fatal error in InputBit!"…
Sash
  • 1,134
  • 11
  • 23
1
vote
2 answers

Log the output of diff command to separate files in linux

I have 2 csv files in 2 different directories,i am running a diff on them like this : diff -b -r -w /AFB.csv /AFB.csv I am getting the output as expected: 14c14 < image_collapse,,collapse,,,,,batchcriteria^M --- >…
6055
  • 439
  • 1
  • 4
  • 14
1
vote
2 answers

search and print the value inside tags using script

I have a file like this. abc.txt 12.3423534.90823234.09

234

23
sadfaf hiisadf asdf345345234345 What I have to do is I…
avinashse
  • 1,440
  • 4
  • 30
  • 55
1
vote
1 answer

How to create a random string in standard shell on hp-ux

I need to create a shell script or a command that will produce random string, something like this: date | md5sum but it needs to work on default hp-ux installation, which doesn't contain any md5sum, there is neither /dev/random or…
Petr
  • 13,747
  • 20
  • 89
  • 144
1
vote
3 answers

Reading file line by line using awk and for loop

File contains compiler generated warnings warnings.txt(with 8 lines) Line1 "/Project/user/XYZ/gsoap/gsoap-2.8.9/gsoap/stdsoap2.cpp", line 1657: error #4296-D: arithmetic operation on boolean type Line2{ return soap->count - soap->buflen +…
user1502952
  • 1,390
  • 4
  • 13
  • 27
1
vote
1 answer

Is there any getifaddrs() alternative on HP-UX, Solaris or AIX?

I'm trying to implement a application that uses the getifaddrs() function from across multiple platforms. My goal is to retrieve network interface related info (IP, IPv6, Netmask, Broadcast, Scope, and HWAddress). I have successfully…
Andrei Matei
  • 1,049
  • 2
  • 10
  • 23
1
vote
0 answers

pstat_getproc returns an error for pid 1 in hp-ux itanium

I'm trying to run a test program that will display the process of a requested pid. If the pid is not inserted, it's suppose to get the process for pid 1 which is init. Somehow when I run it on hp-ux itanium, it cannot display the process. This only…
Mohd Fikrie
  • 197
  • 4
  • 21
1
vote
5 answers

Get full path of executable of running process on HPUX

I want to get the full path of the running process (executable) without having root permission using C++ code. Can someone suggest a way to achieve this. on Linux platforms i can do it by using following way. char exepath[1024] = {0}; char…
user27804
  • 19
  • 1
  • 2
1
vote
1 answer

Spurious characters output from git version 1.8.4

I've just updated git to version 1.8.4 on my company's HP-UX machine. Now I am seeing spurious characters on the terminal, for instance when typing git diff I get: $ git diff 1mdiff --git a/pg/wop/pgmwo.4gl b/pg/wop/pgmwo.4glmm 1mindex…
Richard Holyoak
  • 569
  • 5
  • 18