Questions tagged [hp-ux]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

HPUX: where is the “environment” file to set the variables?

On Slackware Linux, when I want to set an environment variable I edit this file vim /etc/environment On Solaris11, I can set a PATH with nonstandard dirs with those commands(I test the commands in ...
1
vote
0answers
34 views

Anybody still have HP C8000 discs anywhere by any chance? [closed]

I know it's a long shot, but here goes: I need an ISO image of the "HP C8000 Core Graphics" CD that came with the HP C8000 PA-RISC workstation. I was not able (and trust me, I've looked VERY ...
0
votes
0answers
16 views

Installation of cx_Freeze

This is my Python configuration: # python -V Python 2.7.18 # pip -V _findLib_gcc: 1701 Killed _findLib_gcc: 1704 Killed pip 10.0.1 from /usr/local/lib/python2.7/site-packages/pip-10.0.1-py2.7.egg/pip (...
0
votes
1answer
50 views

Migrate from HP-UX to Linux (Shell) [closed]

I want to know what are key things I need to concentrate to migrate HP-UX shell to Linux shell. Any help will be warmly appreciated! Note: I didn't find any similar post / question that might help me.
-1
votes
2answers
84 views

grep on remote host with multiple commands

2nd Command is getting ignored ssh -q -t -o ConnectTimeout=10 learnserver sudo su - root -c 'hostname' && "/grep PermitRootLogin /opt/ssh/etc/sshd_config/"
0
votes
1answer
56 views

Converting loop into a single line command to improve shell script performance in HP-UX

I have the following loop in my shell script. What it does is it removed the record which is more then 3000 bytes actually it taking longer time as it read and line by line check byte, and if less ...
0
votes
4answers
39 views

HPUX large number conversion to avoid numbers like 2.13464e+07

I need to divide 21858717696 by 1024 to get kilobytes on hpux, but using the command below does not work: echo 21858717696 | awk '{print $1/1024}' output: 2.13464e+07 On AIX I can use the below ...
0
votes
3answers
51 views

HP-UX clean space in directory

My directory /var has reached 92% usage and I need to clean it. I am trying to identify where I should point at. I know that df -k gives me the % of allocation from /, but how can I get the same info ...
0
votes
1answer
287 views

Need help on sed/awk command shell script for checking Sybase Errorlog

I have been using shell script written by great expert of Sybase Mr. Rob Verschoor posted here. This job is called through cron job every hour and it sends email to us in case any keyword matches with ...
0
votes
0answers
18 views

Virtual IP mapping on a physical standalone box

We have a clustered HP-UX server and few mounts are shared among these two servers and move along with fail-over. These two physical servers are redirected by a virtual IP. This virtual IP is used by ...
0
votes
2answers
47 views

Delete one type of file from specific directory however not from subdirectory

I am currently working on HP-UX and have a cron job which runs every morning which deletes file older than certain number of days based on retention policy. Recently I added a sub directory at the ...
0
votes
1answer
617 views

rsync (but also other commands) run with nohup gets sigterm

I'm connecting from my computer to a HP UX B.11.31 system and am running some very lengthy there commands using nohup so I can go to sleep and do something else for a few days while they complete. ...
2
votes
1answer
44 views

What are the alternatives to swpackage?

I want to package a software for HP-UX (SD-UX) on a GNU/Linux operating system(for CI/CD reasons) but seems that swpackage is available only on HP-UX. What are the alternatives to swpackage?
0
votes
1answer
50 views

HP-UX swinstall error “INDEX file on the source did not exist or could not be read.” with a hand-crafted depot

I want to create a simple(?) software distribuition(package/SD-UX) containing a simple hello world shell script without using any tools provided by hpux for CI/CD reasons. I have handcrafted this ...
0
votes
0answers
29 views

authenticate against LDAP on HP UX

Trying to develop a program that can only grant access to legitimate LDAP users. PHP has been compiled without LDAP support, so this will have to be effected through the a command line tool. Is there ...
0
votes
1answer
199 views

How can I get a single column of output from the bdf command on HP-UX?

I would like to monitor disk space usage. I'm using HP-UX and the bdf command. I would like to check one directory and I can do that: bdf /exploit/ I would like to get only the row %used. How can I ...
-2
votes
1answer
143 views

How to convert a certificate in .pfx format to .jks in HP-UX server

I have a task to convert a .pfx SSL certificate to .jks format in a HP-UX B.11.31 server to be configured in our application's server.xml file, (keystoreFile=) for our 8090 connector port.
1
vote
1answer
87 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 \ --...
1
vote
1answer
194 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 ...
4
votes
1answer
95 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
344 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
116 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
720 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
56 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
841 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
740 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
717 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
1k 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
81 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
858 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
288 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
154 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
444 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
85 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
451 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
1answer
850 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 on ...
2
votes
2answers
10k 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
195 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 ...
5
votes
3answers
2k 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
1k 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
164 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
65 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
605 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
61 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
1k 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
1k 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
504 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
172 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
937 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
242 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....