Questions tagged [hp-ux]

HP-UX (Hewlett-Packard UniX)

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.

24 questions
9
votes
4 answers

Sorting numerically in a comma-delimited file with Unix

I've got a comma-separated file that looks like this: 100,00869184 6492,8361 1234,31 200,04071 I want to use sort to sort this file numerically by the first column only. Desired Result: 100,00869184 200,04071 1234,31 6492,8361 How do I achieve…
dpatchery
  • 681
4
votes
2 answers

Accessing an "unnamed" file

I have this situation in a certain directory: $ ls -al ... drwxr-xr-x 2 me users 8192 Juni 28 15:27 tmp -rw-r--r-- 1 me users 439 Jan. 3 2013 ... How can I access the second entry, which appears to have no filename?
alk
  • 167
3
votes
2 answers

Unix HP-UX ksh recursive find and replace

I am trying to do a recursive find and replace in HP-UX and am missing something. What I have at the moment: find . -name "*.java" | xargs sed 's/foo/bar/g' I know the problem is that it's not replacing the file inline. I believe on other OS's…
2
votes
0 answers

How to set up a sendmail relay using HP-UX 11.x

I need to setup and HP-UX 11.23 system as a mail relay to collect mail from other internal HP-UX servers and relay them to the MS Excahnge operated smtp relay for delivering internet bound mail to the outsid world. In the past, all my servers had…
Scott
  • 31
2
votes
1 answer

Finding and renaming files

I have about 1000 files containing the character * in the name. I need to find these files and replace the * with a -. I am working with HP UX v11. I am using the following command find . -type f -name '*\**' -exec bash -c 'f="$1"; mv "$f"…
2
votes
4 answers

Help me with my command (primarily awk)

I just wrote the most contorted command I've ever written and I want to know how I may make it better. I wrote this: grep -E '00[7-9]\.|0[1-9][0-9]\.' filename.log | awk '{print $6}' | sed 's/\(.*\):.*/\1/' | sort | uniq -c | sort -rn An example…
Malfist
  • 3,119
2
votes
1 answer

Symbolic link modification for HP unix

I'm trying to modify the following in order to rename some symbolic links: find /home/user/public_html/qa/ -type l \ -lname '/home/user/public_html/dev/*' -printf \ 'ln -nsf $(readlink %p|sed s/dev/qa/) $(echo %p|sed s/dev/qa/)\n'\ >…
kalpesh
  • 21
1
vote
2 answers

What is the default path for sudo command?

What is the default path of sudo command? I checked in some Linux flavours and some solaris flavours, it is: /usr/bin/sudo If a Solaris machine is not bundled with sudo, where will it get installed if we installed it by an external package? I am…
prasanna
  • 321
1
vote
2 answers

Unable to mount a DVD on HP-UX 11

I'm trying mount a DVD (or a CD) on HP-UX 11.31, like so: $ mount -F cdfs -o rr /dev/dsk/c0t2d0 /dvdrom /dev/dsk/c0t2d0: unrecognized file system I've tried each other devices listed in /dev/dsk/ with the same result. I've also tried mount -F…
glutz78
1
vote
1 answer

replace sub-string with last special character, being (3rd part) of comma separated string

I have a string with comma separated values, like: 742108,SOME-STRING_A_-BLAHBLAH_1-4MP0RTTYE,SOME-STRING_A_-BLAHBLAH_1-4MP0-,,, As you can see, the 3rd comma separated value has sometimes special character, like the dash (-), in the end. I want to…
Kostas75
  • 111
1
vote
0 answers

Cron Behavior in HP-UX

I am trying to monitor my server through a script which is run by cron in HP-UX environment. However, an if-else condition is not working correctly when run by cron. For example, if certain condition appears, the script should send mail. But when…
1
vote
1 answer

Safely Transition from RS232 “Dumb Terminal” to RJ45 Telnet/SSH

An HPUX 11i network, running on new hardware, for what they call “mission critical” operations at a unique business, terminates for the user at Sherwood 7000STs. While functional (and lightning fast compared to the Web 2.0 systems I grew up with),…
1
vote
1 answer

On HPUX, how do I list the full path to the executable for all running processes?

What I need: A list of all currently running executables with their full path. Something like this: 1234 /full/path/to/executable 4567 /full/path/to/executable2 Using UNIX95= ps -exo pid,comm I can get a list with PIDs and the commands like…
Per
  • 383
1
vote
2 answers

Clubbing two files after every 12 lines in hp-ux system

I have two large files .one file contains 0-12 Hrs of data and other contain 13-23 hours of data . I want to merge it in a single file with 23-0 hours for each combination. ex…
kiran
  • 11
1
vote
1 answer

At what Java version did HP change the JNI include folder name?

I access an HP-UX box from time to time. It has Java 1.5, 1.6 and (now) Java 8 installed. I noticed that, between Java 6 and 8, the JNI include folder changed from $JAVA_HOME/include/hp-ux to $JAVA_HOME/include/hpux. At what version did this…
Jon
  • 203
1
2