Questions tagged [hp-ux]

HP-UX (Hewlett-Packard UniX)

Filter by
Sorted by
Tagged with
0 votes
1 answer
6k views

ksh Auto-Completion PuTTY Configuration

I'm having a bit of a problem configuring my PuTTY client to work with the auto-completion feature in the ksh shell. I do a listing on the root with the directories /home and /homeroot and it returns ...
1 vote
2 answers
2k views

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/ ...
0 votes
1 answer
3k views

How to check the process tree in HP-UX, just like ptree in Solaris?

How do I check the process tree in HP-UX, just like ptree in Solaris ?
1 vote
1 answer
376 views

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 ...
1 vote
0 answers
157 views

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 ...
1 vote
1 answer
285 views

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 ...
1 vote
1 answer
80 views

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 $...
1 vote
1 answer
1k views

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

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 : file1 abcdefg00 ...
0 votes
2 answers
5k views

How to get fully quallified domain name of a hp-ux machine?

How to get full qualified domain name of a HP-UX machine as like of hostname -f in linux? From man pages, hostname command has no options. I could get fqdn by reading the /etc/resolv.conf file, but ...
0 votes
0 answers
95 views

How can login to other TRU64 from Linux?

i want to connect to a TRU64 machine from Linux system same as: "login a client to a windows network how can login from all machine from on that network" now i can connect to a TRU64 machine with ...
0 votes
2 answers
910 views

compiling git on HP-UX

I'm trying to compile git on an HP-UX system. and when i run make all, I get a syntax error on line 252. if i go to line 252 of the makefile, i see uname_O := $(shell sh -c 'uname -o 2>/dev/null |...
0 votes
1 answer
2k views

sftpd allows file creation, but not overwriting existing files on HP-UX

one of our operational systems (linux) pushes files to our server (HPUX) using SFTP. Sometimes (..) they need to resend an updated version using the same file_name, but the sftp server doesn't allow ...
1 vote
2 answers
24k views

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 ...
2 votes
0 answers
995 views

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 ...
2 votes
1 answer
91 views

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 -...
4 votes
2 answers
1k views

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 ...
3 votes
2 answers
1k views

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 ...
0 votes
1 answer
947 views

Create a fake or dummy virtual printer on HP-UX

I need to set up a fake printer in HP-Unix.. It doesn't need to do any printing but it needs to act as a printer so that an application thinks there is a printer. Can some help me with a script for ...
9 votes
4 answers
17k views

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,...
2 votes
1 answer
1k views

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/...
0 votes
2 answers
2k views

How to use sudo with rcp command to copy files from linux host to HP-UX host?

I'm having this issue where when I try to use sudo to rcp some files from a Linux host to an HP-UX host (note that the destination directory requires root access to write to), I get the following ...
0 votes
2 answers
3k views

Is there a way to pass in a password to the su root -c command?

I'm writing a script that requires root access for HP-UX. I was wondering if there was some way to pass in a password to the su root -c command so that the user would not be prompted for a password. ...
2 votes
4 answers
1k views

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/\(.*\):...