Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [hp-ux]

HP-UX (Hewlett-Packard Unix) is Hewlett-Packard's proprietary implementation of the Unix operating system.

1
vote
1answer
15 views

Stunnel and hpux: why this error?

I have compiled a stunnel build on hpux with those options ./configure \ --prefix=/opt/stunnel \ --sbindir=/opt/stunnel/sbin \ --mandir=/opt/stunnel/man \ --docdir=/opt/stunnel/doc \ --...
0
votes
0answers
8 views

Realvnc and hpux: how to run dtlogin via vnc at startup?

I know how to use a "simple" vnc session. vncpasswd vncserver and I had a cde session wich start on port 5901 vncviewer host:5901 But I want a "dtlogin" screen starting on port 5900 Like MacOS, ...
1
vote
1answer
22 views

Enabling Asynchronous IO at HP-UX Operating System

We are using HP-UX Itanium version B.11.31 and this server is used for running Sybase database version ASE15.7. I would like to know how to enable Asynchronous IO at Operating System level. I went ...
0
votes
0answers
9 views

How to find the apps/packages/patches/configurations pending for reboot on hp-ux?

A few config changes carried out, but didn't reboot. Now,I would like to know the patches/apps/packages/apps/configurations pending for reboot for change config verification purposes. While googling, ...
3
votes
1answer
27 views

Can hyperthread be enabled

I would like to know if hyperthread can be enabled on my operating system or not? I am using HP-UX Itanium, below is truncated output of machinfo Intel(R) Itanium(R) Processor 9560 (2.53 GHz, 32 ...
0
votes
3answers
44 views

how to get the logs of integrated command of find and mv?

I used this command to my script to find specific files and to moved to different folder; however, I would need to generate a log of which file/s I have moved. find $1* -prune -name "*.$2" -mtime +$3 ...
0
votes
2answers
46 views

Move the oldest files into a directory, source directory has more than 10,000 files constantly incoming

I am working on a command to move the x number of oldest files(FIFO) into a directory, is it better idea to pipe the "find" result into "ls" or just use the "ls" .. please suggest. ls -ltr `/bin/...
0
votes
1answer
46 views

SSL and programs like wget,curl with https on hpux

Simple question: every program (wget,curl,etc) which can use https works perfect on linux,and bad on hpux. See this example using https://google.com on linux wget https://www.google.com/ --2018-12-...
1
vote
2answers
41 views

Pick out a date from a command response

I have a command response that looks something like that: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXX | XXX | Thu Oct 18 03:32:00 UTC 2018 XXX | ...
1
vote
2answers
151 views

Can you change permissions for a child directory that you do not own?

Picture a scenario in which you have a parent and a child directory. In the parent directory you have given group rwx. Below that directory you have a directory in which the group permissions are --- (...
2
votes
3answers
310 views

find . * -exec ll {} \; -> with just one result instead of four

I'd like to use find command to search all files in one directory: find . * -exec ll {} \; Result shows four (!) results per file: file123 ./test/file123 file123 test/file123 Is it possible to ...
0
votes
4answers
123 views

How to sort ll output

ll returns this result: 51380224 Aug 3 08:23 tig_10.d1 51380224 Aug 3 08:18 tig_10.d10 51380224 Aug 3 08:20 tig_10.d11 51380224 Aug 3 08:23 tig_10.d12 51380224 Aug 3 08:21 tig_10.d13 51380224 ...
4
votes
2answers
410 views

Get List of Directories and Timestamp in a specific format in HP-UX

I am on HP-UX B.11.11 OS. My requirement is to display a list of directories only and the last modified time format should be DD-MON-YYYY HH:MI:SS AM/PM. I am able to get the list using either ...
1
vote
1answer
55 views

Why does it take longer to add new files to a directory that has a large number of files in it?

Back in 2011 we had a peculiar problem. We noticed that the processing tool for one of our clients was taking a long time processing ~20000 p/hr. Since we needed to process upwards 3 million files a ...
0
votes
1answer
120 views

unable to spool through shell(ksh)

I've written a shell script in which i've defined variables : Last_Month,last_date and first_date and i'm trying to execute the below sql from the shell : /app/oracle/product/10.2.0/bin/sqlplus -s ...
0
votes
1answer
81 views

hp-ux ps,what the difference between sleeping and waiting?

On hpux ps -efl I see on output the letter S,which mean "state of process" I see voices like S(sleeping) and W(waiting) I know(hope is correct) Sleeping mean "waiting for event",but what does it ...
0
votes
0answers
97 views

Hpux: /etc/group nogroup has -2,what does it mean?

On Hpux grep "nogroup" /etc/group return nogroup:*:-2: Nogroup is name,* mean "shadow" enabled,but what does it mean -2?
1
vote
3answers
207 views

SED command to comment all the lines except the one's that matched the pattern

I have the below cron.txt file 58 18 * * 1-5 /usr/home/script.sh REP CXC BS TODAY all 1>/dev/null 2>/dev/null 00 19 * * 1-5 /usr/home/script.sh DSC DXC BUS TODAY all 1>/dev/null 2>/dev/...
-1
votes
1answer
38 views

Fetch a number of variable length from a file using pattern matching?

I have many files on UNIX and wish to fetch number in that file associated with a specified pattern. Most of the file will have a unique pattern in file like below some text abc some text abc some ...
1
vote
2answers
245 views

How to extract specific pattern from a file in HP-UX

I would to like extract the pattern "/oracle" from a file. I tried with "grep -w" command but it returned all the lines which have oracle word. I need to extract only /oracle. Please tell me if any ...
0
votes
0answers
141 views

HP:the arguments in killall beyond `man killall`

In the tutorial here : /usr/bin/killall -HUP rsyslogd For the command : /usr/bin/killall -HUP rsyslogd In my os,the synopsis info in man killall SYNOPSIS killall [-Z, --context pattern] [-...
0
votes
1answer
459 views

HPUX top command out put regarding memory explained

While we run top on HP-UX ksh console we can see set of memory related value. Out of that I want to get the total physical memory and free memory. The output would look like follows on multiple run ...
0
votes
2answers
3k views

Find command not working in shell script

I have a to find for list of words in a list of files. Hence I have put the list of words in a file, and using for loop trying to read each word in a file and use find command to grep for that word in ...
7
votes
1answer
114 views

HP-UX 10.20 software depots

I've been looking for HP-UX 9.X and 10.20 patches and it looks like I'm late to the party. I found the original FTP sites from HP have all been taken down. I'm sure that someone must have made a ...
4
votes
3answers
902 views

quotes inside backticks inside quotes in ksh

I'm trying to get the file of the current date with the following command in HP-UX Unix: $ ls -lrt ABC.LOG* |grep "`date +"%b %d"`" But, it's giving me the error: ksh: : cannot execute grep: can't ...
1
vote
1answer
642 views

How to call another shell script within AWK

I wish to call another shell script tm.sh within AWK. I'm trying as below but its not working as no error during executing this command but output doesn't display that I coded into tm.sh. please help ...
0
votes
1answer
96 views

hp-ux admin tool lsof fuser for B.11.31

centrpt:oracle> uname -r B.11.31 We need lsof and fuser as there are unclosed file handler so we cannot reclaim disk space after reboot. Where we can get the tool for this dated version of HP-UX ??...
1
vote
1answer
47 views

Can you create a logical volume to be within a logical volume?

I'm using HP-UX. Basically the problem is I need another logical volume to test EVFS. At the moment, I can't add another physical volume to the sever. And it seems that all of the physical volume on ...
1
vote
1answer
320 views

How to clone HP-UX server to another fresh server

I have a HP-UX box and i want to clone the same to other server. Lets assume HP-UX(A) and other server(B) <SERVER_NAME> $ uname -a HP-UX <SERVER_NAME> B.11.23 U 9000/800 1544735064 ...
1
vote
0answers
54 views

In HP-UX, how do you write a C program using PKCS#11 api?

I am heavily confused by HP-UX's manual on its cryptographic module linked here. It gives an example of a C code using PKCS#11 apis, but nowhere can I find information on where to find the shared ...
0
votes
2answers
850 views

How to remove text before and after in a word

I have the line below: create table "sacro".issue The desired outcome I want is below: "sacro" I want to remove everything before the first double quote and everything after the last double quote
1
vote
2answers
457 views

How to awk unique line and print 2 lines above

I am facing an issue where I am using awk to find a line and print two lines above Inside the file test.txt file is below" { TABLE "sacro".issue row size = 149 number of columns = 9 index size = 0 } ...
1
vote
1answer
299 views

HP-UX - Unable to use the backspace on ssh connection

I have a handful of HP-UX machines that I have to work on and it really annoying to have to use the left arrow key for a backspace and have backspace type '^?'. The systems are using HP-UX 11.31. Is ...
0
votes
1answer
141 views

Echo odd number and print next even number using awk and preventing results such as 1.00001e+06

I had a solution on AIX 7.1 where I could echo an odd number and print the next even number for example the below: $ echo "3" | bc -l | awk '{printf("%.0f\n", $1)}' | awk '{$0=int($0/4+.75)*4}1' 4 $ ...
0
votes
1answer
744 views

How to awk and printf columns using formatting and including all columns after 9th

I have the below script to print all specified columns from the 1st to the 9th using printf to format, however I would like to print any columns thereafter the 9th column and I am unsure of how to do ...
1
vote
2answers
171 views

Deleting LARGE number of files (exec, loops..) [duplicate]

I have a very large number of files to delete, which go by the following format: esymac_logEvents.log.5_2017-Feb-06_02-39-17.Z_2017-Feb-08_02-39-14.Z_2017-Feb-09_02-39-14.Z_2017-Feb-11_02-39-11....
0
votes
2answers
62 views

Print entire Block if multiple strings are found inside Start ---End

My Raw log file similar to production log i have tweaked this, Block f1 PCO Blockf1 tray:school SAM :XP X/Y DUPL KEY Z/Z Block f2 PCO Blockf2 tray:school SAM :XP ...
0
votes
1answer
567 views

HPUX 11i v3 Auditing to a syslog server - Configuration

I had trouble setting up auditing on our HPUX system and sending the same to a SIEM solution as a multiline log. The issue was that audsys writes the log to binary files and I need it to be setup in ...
3
votes
1answer
129 views

shell variable value in for loop different after loop

I have a challenge with a variable value changed in a for loop and the value of that variable after the for loop and using tee SCRIPT_1: STATUS=9 for SESSION in A B C do ...
1
vote
1answer
2k views

hpux: i want to see print queue jobs

On all unix systems I use simply lpq But on hpux didn't exist and i can install only the lpq of cups. Using the old sysV system(lpsched,etc..) how to see the print jobs like lpq?
1
vote
1answer
111 views

hpux 11.31 : what is the difference between distribuited volume and stripe lvm?

With this command lvcreate -D I create a distribuited lvm. With this I create a striped lvm. lvcreate -L 1220 -i 3 -I 64 -n name /dev/vg02 What is the difference between a striped and ...
1
vote
1answer
76 views

Is correct this boot procedure in HPUX?

I'm studyng hp-ux and unix in general. I'm a little confused about isl ipl and pdc. As I know, pdc on hppa is the same thing as a bios on x86 make a post and load bootloader bootloader are two,ipl ...
0
votes
1answer
631 views

grep -r is not working in HP-UX. Is there any alternative commad to be used instead of grep -r in HP-UX? [duplicate]

I Want to grep recursively in HP-UX. grep -r is not working in HP-UX (the option is not supported). Is there any alternative command to be used instead of grep -r in HP-UX?
3
votes
1answer
206 views

In HP-UX server, grep -r option is not working

In unix server grep -r option is not working. OS is HP-UX. If grep -r is not working any alternative way to do recursive search without -r option?
0
votes
1answer
316 views

HP-UX redirect all mails to a single mail id

I want to redirect all mails which are being send from my system to a single mail id. For example, if I use following command from my system echo "This is going to be body of the mail - server" |...
2
votes
0answers
297 views

How to monitor an HP-UX server for OS or hardware specific problems

It has been a while since I have last dealt with an HP-UX server. Therefore, my memory is not too fresh and I want to consult the public wisdom for this. I have a task at hand to come up with a ...
2
votes
2answers
395 views

“xxd -p” alternative for HP-UX - how to get the same results with “xd”?

I have a command which is very handy at work. It searches for a certain STRING inside some hex raw files with FILENAME. The command which I always used in Linux systems is: find . -name '**FILENAME*...
-2
votes
2answers
840 views

Unix for loop and grep combined ksh hp-ux

What if you have 5 or 6 files, specific files .biz in a directory, and you want to store them one at the time in a variable $file, and apply a set of command until no more .biz file are found in the ...
0
votes
1answer
617 views

What is special about printf over echo

I was finding length of a variable as below: `set num=123456` `echo $num|wc -c` it returned output as 7 (suppose to return 6) I did same with printf `printf "%s" $num|wc -c` it returned output as ...
0
votes
1answer
2k views

set alias for a directory

I am trying to set an alias that would allow me to quickly cd to the following directories: /home/user/asreera/Aravind/sample/src /home/user/asreera/Aravind/sample2/src First I set the variable: ...