Questions tagged [hp-ux]
HP-UX (Hewlett-Packard Unix) is Hewlett-Packard's proprietary implementation of the Unix operating system.
151
questions
0
votes
0
answers
50
views
Redhat linux kickstart installtion
I am installing a new Linux using kickstart 7.9 iso file on hardware gen10 but the installation get stuck at hardware RNG please have a look and support.
0
votes
1
answer
61
views
How to debug StoreOnce Oracle RMAN plugin on HP-UX?
We have an old Oracle 10g database on old Itanium machine (BL870c i2) which is running HP-UX B.11.31 (it appears to be latest version). Also we have a StoreOnce 3640 (s/w version 4.2.1-1942.21, which ...
0
votes
1
answer
45
views
How can I setup my HPUX profile to use the Linux equivalent of the repeatable commands from history (like !3)?
One thing I really like from Linux is to be able to view my history with the "history" command, and then type !# where # is the command from my history that I would like to run. ...
2
votes
2
answers
473
views
How does find . -type f -print -o -name . -o -prune actually work?
As background, I'm using git on an hp-ux 11.11 (11v1) system. I'm doing an extensive .gitignore file to exclude many many files. My .gitignore is basically "Ignore everything, except these ...
0
votes
3
answers
211
views
How to find every months secound day
How to get second day(date) of current month (e.g 2 August) in HPUX.
date -d doesn't work in HPUX Unix.
0
votes
2
answers
103
views
File layout for file
I have a file with numbers in like this:
1234
5678
3456
How can I get this on one line using a bash shell script with a space between each like this
1234 5678 3456
0
votes
3
answers
323
views
How to use substitute with cd command in Linux
We recently migrated from HP-UX B.11.31 to Linux 3.10.0-1160.15.2.el7.x86_64.
I am trying to achieve the below (which worked in the earlier HP-UX system):
$ pwd
/global/app/opt/prod/ee/01/custo/src/
$ ...
0
votes
1
answer
172
views
HP-UX 11.11 - Incoming connection problem
I have machine with fresh installed HP-UX 11.11.
All seem to work well, but there is one problem - while I have no problem to ping my Ubuntu 20.04 machine, access internet etc from HP-UX machine, I ...
0
votes
1
answer
318
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
0
answers
165
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
1
answer
362
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
2
answers
564
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
1
answer
166
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
4
answers
66
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
3
answers
796
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
1
answer
967
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
2
answers
189
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 ...
3
votes
1
answer
2k
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.
...
3
votes
1
answer
65
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
1
answer
104
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
0
answers
46
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
1
answer
490
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
1
answer
269
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
1
answer
206
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
1
answer
347
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
1
answer
199
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
3
answers
2k
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
2
answers
281
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
1
answer
2k
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
2
answers
81
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
2
answers
2k
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
3
answers
1k
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
4
answers
2k
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
2
answers
2k
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
1
answer
149
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
1
answer
2k
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
1
answer
501
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
0
answers
234
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
3
answers
1k
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
1
answer
200
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
2
answers
616
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
1
answer
1k
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
2
answers
23k
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
1
answer
316
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
3
answers
3k
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
1
answer
2k
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
1
answer
294
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
1
answer
104
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
1
answer
864
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
0
answers
69
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 ...