Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
2 answers
1879 views
Unix 11i v2 Script to detect new files within directory
I was hoping someone can point me in the right direction. I would like to create a script to check for new files (files with today's date) within a directory and then print the results to a text file. Could I use `cron` or `bash`? edit: Updated original thread. I tried the following on my Linux Mint...
I was hoping someone can point me in the right direction. I would like to create a script to check for new files (files with today's date) within a directory and then print the results to a text file. Could I use cron or bash? edit: Updated original thread. I tried the following on my Linux Mint VM and I got it to work. The only problem is: 1) when i create a new file (using "sudo vi newtextfile.txt" and then ":w") i receive the notification email *4 times*. 2) am i triggering multiple IN_CREATE events by creating a new file using the method i mentioned above? /xyz/jon >>> total 12 786436 drwxr-xr-x 2 root root 4096 Jul 13 20:43 . 786434 drwxr-xr-x 4 root root 4096 Jul 13 19:45 .. 786441 -rwxr-xr-x 1 root root 48 Jul 13 20:32 mylogger.sh 786437 -rw-r--r-- 1 root root 0 Jul 13 20:22 mylogtoday.txt "incron.table-jonincron" >>> /xyz/client IN_CREATE /xyz/jon/mylogger.sh /xyz/jon/mylogger.sh >>> sudo mail -s "testing script" emailaddress@domain.com
jes516 (863 rep)
Jul 13, 2014, 09:01 PM • Last activity: Jul 28, 2025, 10:01 PM
3 votes
1 answers
2827 views
rsync (but also other commands) run with nohup gets SIGHUP
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. Example of such a command: ``` nohup rsync --rsync-path=/usr/local/bin/rsync -e ssh /data/src usr@targe...
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. Example of such a command:
nohup rsync --rsync-path=/usr/local/bin/rsync -e ssh /data/src usr@target:/data/ >> /data/log/sync.out 2>&1 &
Note: the Rsync command's target is a different HP UX server. It'll run and run, until my computer somehow gets disconnected from the HP UX system (it's connected through SSH over a VPN over my home connection, and disconnections seem to happen once a day). If this has happened, I can tail /data/log/sync.out and I'll find:
Killed by signal 1.
rsync error: unexplained error (code 255) at rsync.c(549) [sender=3.0.8]
Someone suggested putting the command in a shell script and running that with nohup instead. So I did that (with a shebang for #!/usr/bin/bash), and then ran the command as nohup ./auto_rsync.sh > /data/log/sync.out 2>&1 &. The same thing happened. The funny thing is that if I simply log out while the command is running by typing exit, the command will keep running. So why is only my disconnect sending SIGHUPs to a process running with nohup?
bluppfisk (193 rep)
Oct 1, 2019, 06:22 AM • Last activity: May 21, 2025, 10:14 AM
2 votes
2 answers
223 views
Hpux and TCB, how to enable login console?
I'm on hpux 10.20 (for testing), is TCB-enabled when I try a login from a serial console this m essage appear GenericSysName [HP Release B.10.20] (see /etc/issue) login: root Cannot obtain database information on this terminal Disabling tcb (sic!) works The question is: how to enable the tty login u...
I'm on hpux 10.20 (for testing), is TCB-enabled when I try a login from a serial console this m essage appear GenericSysName [HP Release B.10.20] (see /etc/issue) login: root Cannot obtain database information on this terminal Disabling tcb (sic!) works The question is: how to enable the tty login using tcb? Thanks
elbarna (13690 rep)
Nov 18, 2024, 08:25 AM • Last activity: Nov 18, 2024, 11:27 AM
0 votes
0 answers
15 views
Hpux 10.20: auditing enabled and report..nothing
I have enabled auditing on hpux 10.20 vim /etc/rc.config.d/auditing AUDITING=1 PRI_AUDFILE=/.secure/etc/audfile1 PRI_SWITCH=1000 SEC_AUDFILE=/.secure/etc/audfile2 SEC_SWITCH=1000 AUDEVENT_ARGS1="-P -F -e moddac -e login -e admin" AUDEVENT_ARGS2="" AUDEVENT_ARGS3="" AUDOMON_ARGS="-p 20 -t 1 -w 90" st...
I have enabled auditing on hpux 10.20 vim /etc/rc.config.d/auditing AUDITING=1 PRI_AUDFILE=/.secure/etc/audfile1 PRI_SWITCH=1000 SEC_AUDFILE=/.secure/etc/audfile2 SEC_SWITCH=1000 AUDEVENT_ARGS1="-P -F -e moddac -e login -e admin" AUDEVENT_ARGS2="" AUDEVENT_ARGS3="" AUDOMON_ARGS="-p 20 -t 1 -w 90" start auditing audsys -c /.secure/etc/audfile1 -x /.secure/etc/audfile2 -s 1000 -z 1000 i reboot and.. audisp -u root users and aids: root 0 All events are selected. All ttys are selected. Selecting successful & failed events. TIME PID E EVENT PPID AID RUID RGID EUID EGID TTY as you can see no events are reported, why?
elbarna (13690 rep)
Nov 18, 2024, 11:18 AM • Last activity: Nov 18, 2024, 11:25 AM
0 votes
3 answers
580 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/ $ cd prod qa /global/app/opt/qa/ee/01/custo/src/ $ pwd /global/app/opt/qa/ee/01/custo/src/ Ba...
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/ $ cd prod qa /global/app/opt/qa/ee/01/custo/src/ $ pwd /global/app/opt/qa/ee/01/custo/src/ Basically, it switches from **prod** to **qa**, maintaining the relative directory structure. when I try the same think in Linux: $ pwd /global/app/opt/prod/ee/01/custo/src/ $ cd prod qa -bash: cd: prod: No such file or directory $ pwd /global/app/opt/prod/ee/01/custo/src/ Here, the directory doesn't change. Please help.
Aman S. Aneja (3 rep)
Jul 10, 2021, 06:06 PM • Last activity: Feb 14, 2023, 09:40 PM
0 votes
1 answers
154 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 means it's gen4). The natural way to backup the database is to use supplied Catalyst RMAN plugin. We...
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 means it's gen4). The natural way to backup the database is to use supplied Catalyst RMAN plugin. We successfully use this plugin of version 3.4.0 on the neighbor Oracle Linux machine with Oracle Database 11g R2. The installation of the plugin on HP-UX went successfully. However, when running a backup, it doesn't work, logging the following error message:
2022-09-29 09:22:19.456266 (local 13:22) : ERROR : 12217_1 : 3 : TC :  16 : 192.168.221.150 : Ix : OSCPP : osCltCrypt_HashPasswordStringSecureMode : Ln 202 : Failed to hash the password (Secure Mode). callStatus : 0
2022-09-29 09:22:19.464390 (local 13:22) : ERROR : 12217_1 : 3 : TC :  16 : 192.168.221.150 : Ix : OSCPP : osCltCrypt_HashPasswordStringSecureMode : Ln 204 : GOTO ReturnStatus = -1000 (OSCLT_ERR_INTERNAL_ERROR).
2022-09-29 09:22:19.464655 (local 13:22) : ERROR : 12217_1 : 3 : TC :  16 : 192.168.221.150 : Ix : OSCPP : osCltTrnCmd_OpenCommandSession : Ln 394 : Failed to create a Secure Mode hashed password.
2022-09-29 09:22:19.464701 (local 13:22) : ERROR : 12217_1 : 3 : TC :  16 : 192.168.221.150 : Ix : OSCPP : osCltTrnCmd_OpenCommandSession : Ln 395 : GOTO ReturnStatus = -1000 (OSCLT_ERR_INTERNAL_ERROR).
2022-09-29 09:22:19.464768 (local 13:22) : ERROR : 12217_1 : 3 : TMC : OSCPP : osCltTeamCmd_OpenCommandSession : Ln 472 : Failed to open initial cmd transport, error -1000.
2022-09-29 09:22:19.464815 (local 13:22) : ERROR : 12217_1 : 3 : TMC : OSCPP : osCltTeamCmd_OpenCommandSession : Ln 478 : GOTO ReturnStatus = -1000 (OSCLT_ERR_INTERNAL_ERROR).
2022-09-29 09:22:19.464904 (local 13:22) : ERROR : 12217_1 : 3 : C : OSCPP : osCltCmd_OpenCommandSessionInternal : Ln 306 : Unable to open command session to server : 192.168.221.150 (port : 9387). Error: -1000.
2022-09-29 09:22:19.464955 (local 13:22) : ERROR : 12217_1 : 3 : C : OSCPP : osCltCmd_OpenCommandSessionInternal : Ln 307 : GOTO ReturnStatus = -1000 (OSCLT_ERR_INTERNAL_ERROR).
2022-09-29 09:22:19.470774 (local 13:22) : ERROR : 12217_1 : 0 : +C : OSCPP : Open : Ln 188 : EXCEPTION: Open command session to 192.168.221.150 failed. retryCount 0. : OSCLT_ERR_INTERNAL_ERROR [-1000] (from:Open@188)
2022-09-29 09:22:20.062702 (local 13:22) : ERROR : 12217_1 : 6 : TC :  16 : 192.168.221.150 : Ix : OSCPP : osCltCrypt_HashPasswordStringSecureMode : Ln 202 : Failed to hash the password (Secure Mode). callStatus : 0
2022-09-29 09:22:20.062808 (local 13:22) : ERROR : 12217_1 : 6 : TC :  16 : 192.168.221.150 : Ix : OSCPP : osCltCrypt_HashPasswordStringSecureMode : Ln 204 : GOTO ReturnStatus = -1000 (OSCLT_ERR_INTERNAL_ERROR).
2022-09-29 09:22:20.062942 (local 13:22) : ERROR : 12217_1 : 6 : TC :  16 : 192.168.221.150 : Ix : OSCPP : osCltTrnCmd_OpenCommandSession : Ln 394 : Failed to create a Secure Mode hashed password.
2022-09-29 09:22:20.062989 (local 13:22) : ERROR : 12217_1 : 6 : TC :  16 : 192.168.221.150 : Ix : OSCPP : osCltTrnCmd_OpenCommandSession : Ln 395 : GOTO ReturnStatus = -1000 (OSCLT_ERR_INTERNAL_ERROR).
2022-09-29 09:22:20.063063 (local 13:22) : ERROR : 12217_1 : 6 : TMC : OSCPP : osCltTeamCmd_OpenCommandSession : Ln 472 : Failed to open initial cmd transport, error -1000.
2022-09-29 09:22:20.063110 (local 13:22) : ERROR : 12217_1 : 6 : TMC : OSCPP : osCltTeamCmd_OpenCommandSession : Ln 478 : GOTO ReturnStatus = -1000 (OSCLT_ERR_INTERNAL_ERROR).
2022-09-29 09:22:20.063159 (local 13:22) : ERROR : 12217_1 : 6 : C : OSCPP : osCltCmd_OpenCommandSessionInternal : Ln 306 : Unable to open command session to server : 192.168.221.150 (port : 9387). Error: -1000.
2022-09-29 09:22:20.063262 (local 13:22) : ERROR : 12217_1 : 6 : C : OSCPP : osCltCmd_OpenCommandSessionInternal : Ln 307 : GOTO ReturnStatus = -1000 (OSCLT_ERR_INTERNAL_ERROR).
2022-09-29 09:22:20.063342 (local 13:22) : ERROR : 12217_1 : 0 : +C : OSCPP : Open : Ln 188 : EXCEPTION: Open command session to 192.168.221.150 failed. retryCount 0. : OSCLT_ERR_INTERNAL_ERROR [-1000] (from:Open@188)
(192.168.221.150 is the StoreOnce IP address). From the first line I could infer that there's some function osCltCrypt_HashPasswordStringSecureMode which is supposed to create some hash of the password and fails. How to find out what went wrong and why it doesn't work? And, to fix, supposedly? **UPD:** if we make the Catalyst datastore public (ouch) and remove (comment out) the client name and password in the plugin.conf on the client, backup works. It looks like some library is missing in our HP-UX installation that is required to hash the password, and if the passwordless mode is configured, this step is ommited and everything else works. **UPD:** tried to run ldd libisvsupport_rman.so (which is 38 MB plugin binary). The result is:
libisvsupport_rman.so:
        libdl.so.1 =>   /usr/lib/hpux64/libdl.so.1
        libstd_v2.so.1 =>       /usr/lib/hpux64/libstd_v2.so.1
        libCsup.so.1 => /usr/lib/hpux64/libCsup.so.1
        libm.so.1 =>    /usr/lib/hpux64/libm.so.1
        libunwind.so.1 =>       /usr/lib/hpux64/libunwind.so.1
        libc.so.1 =>    /usr/lib/hpux64/libc.so.1
        libuca.so.1 =>  /usr/lib/hpux64/libuca.so.1
        libpthread.so.1 =>      /usr/lib/hpux64/libpthread.so.1
**UPD:** Tried to install the OpenSSL library from OpenSSL_A.01.01.01p.001_HP-UX_B.11.31_IA_PA.depot, as suggested in the answer. That didn't help, nothing changed at all.
Nikita Kipriyanov (1779 rep)
Sep 29, 2022, 09:47 AM • Last activity: Oct 14, 2022, 09:26 AM
0 votes
1 answers
139 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. Unfortunately, while HPUX does have a history command, it seems I cannot repeat a command the same way I can in Linux usin...
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. Unfortunately, while HPUX does have a history command, it seems I cannot repeat a command the same way I can in Linux using !#. Is there a way I can implement this in HPUX? So far, the best option I have found would be to create a custom command: https://unix.stackexchange.com/questions/84686/how-to-create-custom-commands-in-unix-linux My approach would be to have a custom command in the format of !n where n is an integer that gets parsed out. The command corresponding to n is parsed from the history and ran. While this is doable, it sure feels like I am reinventing the wheel. Is there a better way to achieve this result? What can I do to repeat commands from my history in HPUX?
nightmare637 (111 rep)
Jul 8, 2022, 07:42 PM • Last activity: Jul 8, 2022, 08:34 PM
2 votes
2 answers
803 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 directories, but also ignore these patterns under those directories." Precisely how and why is not exactly re...
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 directories, but also ignore these patterns under those directories." Precisely how and why is not exactly relevant to the question. My object is to be sure I'm getting what I expect to get when I run git add before running git add. To accomplish this, I'm running tests against a given directory's files with git check-ignore. My approach normally looks thus:
test2 -type f -exec git check-ignore -v -n {} \; grep !
For clarity, the repository exists in the root (/.git) (it's actually symlinked to /baz/dev/myRepo/.git), so I'm calling, for example, git status from /. I'm also calling find from / so that the paths match what git is expecting to see and the format of the paths returned by find to the -exec action match. Standard output for this would look something like the following:
.gitignore:208:!test2/backupScripts/**  test2/backupScripts/CV_PostJob.sh
.gitignore:208:!test2/backupScripts/**  test2/backupScripts/CV_PostJob.sh.old
.gitignore:208:!test2/backupScripts/**  test2/backupScripts/CV_PreJob.sh
.gitignore:208:!test2/backupScripts/**  test2/backupScripts/CV_PreJob.sh.old
.gitignore:208:!test2/backupScripts/**  test2/backupScripts/CV_ScanCheck.sh
.gitignore:208:!test2/backupScripts/**  test2/backupScripts/oldCH.txt
.gitignore:212:!test2/scripts/**        test2/scripts/deprecated/CommvaultBackupScript.sh
.gitignore:212:!test2/scripts/**        test2/scripts/deprecated/NetBackupScript.sh
.gitignore:212:!test2/scripts/**        test2/scripts/benchmark.sh
.gitignore:212:!test2/scripts/**        test2/scripts/migrateVolumeSync.sh
.gitignore:212:!test2/scripts/**        test2/scripts/test.sh
.gitignore:206:!test2/* test2/CommvaultBackupScript.sh
.gitignore:206:!test2/* test2/NetBackupScript.sh
.gitignore:206:!test2/* test2/benchmark.sh
.gitignore:206:!test2/* test2/test.sh
Generally, this technique works well, however there are in some cases directories such as /test2/foo and /test2/bar which both contain large numbers of files which will be excluded by patterns in the .gitignore:
#Ignore everything
*

#add back /test2
!test2
!test2/**
#reignore foo and bar
test2/foo
test2/bar
So, the core problem is: I'd like to be able to run find test2 -exec git check-ignore without enumerating test2/foo and test2/bar and not have to write a command like find test2 -name foo -prune -o -name bar -prune -o -type f -exec git check-ignore {} \; especially for cases where the ignored subdirectories may number over a dozen and in reality, I just want to validate that the files immediately in test2/ specifically are going to be properly included, and then do another run to validate a single small subdirectory such as test2/backupScripts. Ultimately, I'd like to adapt the POSIX compliant command find . -type f -print -o -name . -o -prune such that it can be run with -exec and so that find passes paths to git check-ignore which are absolute instead of relative. However, I'm at a loss understanding how exactly that command works. I can confirm that it does indeed only scan the root directory of wherever it is run from. I'm laboring under the restriction of not having a modern version of findutils, and no apparent availability of GNU findutils for the platform, so -maxdepth option is not available. Additionally, /test2 is a mountpoint, so running git from within test2 for the repository at /.git will require modifying Git's environment (export GIT_DISCOVERY_ACROSS_FILESYSTEM=1) to enable traversing mountpoint boundaries (at which point cd test2 && find . -type f -exec git check-ignore --no-index -v -n {} \; -o -name . -o -prune | grep ! works fine). I'd prefer not to do this if it's possible (for other uses of Git on the system). So, how exactly does find . -type f -print -o -name . -o -prune work? Can it be modified to replace one or more of the dots with some pathspec that will enable it to be called from /? Or is this some kind of "magic" (as in: the desired behavior can only be elicited when options are provided in this order) sequence that performs a specific function when provided in this specific order? A google search for this specific command appears to return little else besides reposts of this specific answer itself in multiple languages: find without recursion I've attempted to deconstruct this specific command's behavior by doing the following:
cd /
find test2 -type f -print -o -name . -o prune
#no output

cd /test2
find . -type f -print -o -name . -o -prune
#get files in CWD as expected

find . -type f -print 
#gives me all files and directories below this, as you would expect

find . -type f -print -o -name . 
#gives the same as the prior command

find . -name . 
#gives just the CWD entry (.)

find . -name . -o -prune 
#gives just the files and folders in CWD, including the (.) entry

cd /
find test2 -name test2 -o -prune 
#also gives the files and folders directly in test2, including test2 itself

find test2 -name test2 -o -prune -o -type f -print 
#no output

find test2 -name test2 -prune 
#returns just test2 itself

find test2 -type f -print -o -name test2 -prune 
#predictably gives no output, as test2 is pruned

find test2 -type f -print -o -name foo -prune 
#gives full directory list except for /test2/foo, as expected.

find test2 -type f -print -o -name "test2/*" -prune 
#gives full directory list, as a / will never be in the "base" name which find tests.

cd /
find test2/* -type f -print -o -prune 
#this is the closest, same as "find . -name . -o -prune" but with cd to test2 first.
Christopher Eberle (23 rep)
Mar 23, 2022, 02:50 PM • Last activity: Apr 18, 2022, 04:07 PM
0 votes
1 answers
340 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 cannot ping HP-UX machine itself, therefore I cannot ssh, ftp and other things. Could anyone suggest m...
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 cannot ping HP-UX machine itself, therefore I cannot ssh, ftp and other things. Could anyone suggest me what could I do in order to make my HP-UX machine available in the network? (I have googled and found some info about ipfilter but I cannot find any signs of ipfilter in /etc/rc.config.d) ***HP-UX ip address is 10.0.2.15 - can ping Linux machine on 192.168.0.102 Linux ip address is 192.168.0.102 - cannot ping HP-UX machine on 10.0.2.15*** lanscan gives lan0 interface only, IP address is 10.0.2.15 I am pinging my Linux machine (192.168.0.102) from the HP-UX machine **ping 192.168.0.102** gives the following: 64 bytes from 192.168.0.102, icmp_sq=0, time=8, ms **ping community.hpe.com** gives the following: 64 bytes from 99.86.161.54, icmp_sq=0, time=45, ms Cannot ping from my Linux (192.168.0.102) machine **ping 10.0.2.15** gives the following: From 10.244.232.2 icmp_seq=1 Time to live exceeded From 10.244.232.2 icmp_seq=2 Time to live exceeded From 10.244.232.2 icmp_seq=3 Time to live exceeded From 10.244.232.2 icmp_seq=4 Time to live exceeded **ssh dragon@10.0.2.15** gives the following ssh: connect to host 10.0.2.15 port 22: No route to host (sshd is up and running on the HP-UX machine, ps -ef | grep sshd shows that)
user306080 (103 rep)
Apr 26, 2021, 11:58 AM • Last activity: Dec 7, 2021, 08:14 AM
0 votes
3 answers
457 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.
How to get second day(date) of current month (e.g 2 August) in HPUX. date -d doesn't work in HPUX Unix.
Pankaj Kalbhor (3 rep)
Aug 25, 2021, 03:28 PM • Last activity: Aug 26, 2021, 12:18 PM
1 votes
2 answers
1474 views
Problem typing @ character at command prompt under HP-UX
Under HP-UX Model :9000/800 O/S = B.11.11 Problem to type @ character on command prompt as well as in vi editor also. When I try to type "@" this character I won't get anything. line for export command i need to use @.
Under HP-UX Model :9000/800 O/S = B.11.11 Problem to type @ character on command prompt as well as in vi editor also. When I try to type "@" this character I won't get anything. line for export command i need to use @.
user110943 (11 rep)
Apr 18, 2015, 09:16 AM • Last activity: Aug 23, 2021, 01:59 PM
0 votes
2 answers
144 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
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
Steve (1 rep)
Jul 15, 2021, 03:11 PM • Last activity: Jul 16, 2021, 11:52 PM
3 votes
2 answers
1364 views
GVim compiled from source does not use gtk2
I have two HP-UX machines say A and B with HP-UX 11.11 and 11.31 respectively. I have compiled gvim 7.3 from source an B, and gvim 7.0 on A. On A, gvim uses "version with GTK GUI", Compilation with gcc (...) -DFEAT_GUI_GTK and all works fine. On B, gvim looks different and uses "version with X11-Mot...
I have two HP-UX machines say A and B with HP-UX 11.11 and 11.31 respectively. I have compiled gvim 7.3 from source an B, and gvim 7.0 on A. On A, gvim uses "version with GTK GUI", Compilation with gcc (...) -DFEAT_GUI_GTK and all works fine. On B, gvim looks different and uses "version with X11-Motif GUI". Here ssh -X does not copy paste on selection exactly as in the thread "GVim compiled from source opened via SSH -X does not copy paste on selection": - copy/paste via select works on a GVim window on A, but not on B. - When I select some text in the GVim window, I can paste it via right-click within that window, but I cannot paste it into anything running locally. When I select something locally, I can paste it locally but when I paste into the GVim window, it pastes the last thing selected in the GVim window, not the last thing selected locally. The Problem is: I cannot rebuild gvim with gtk. Although I have installed GTK+ on the machine via HP depot (GTK 2.6) and using gtk+ is called default in the Makefile configure ends up with compiler option "gcc (...) -DFEAT_GUI_MOTIF". to be more specific: configure gives: checking --enable-gui argument... yes/auto - automatic GUI support checking whether or not to look for GTK+ 2... yes but doesn't search for gtk Libraries. It only looks for Motif: checking for location of Motif GUI libs... /usr/lib/Motif1.1 It doesn't tell me that it is missing anything I can provide! In the directory "auto" the file configure.log shows no failure in searching for GTk, it just doesn't look for! configure:7577: result: yes/auto - automatic GUI support configure:7609: checking whether or not to look for GTK+ 2 configure:7618: result: yes configure:7627: checking whether or not to look for GNOME configure:7636: result: no configure:7644: checking whether or not to look for Motif configure:7653: result: yes configure:7661: checking whether or not to look for Athena configure:7670: result: yes configure:7678: checking whether or not to look for neXtaw configure:7687: result: yes configure:7695: checking whether or not to look for Carbon configure:7704: result: yes configure:7752: checking --disable-gtktest argument configure:7762: result: gtk test enabled configure:7772: checking for pkg-config configure:7803: result: no configure:8035: checking for location of Motif GUI includes configure:8047: result: in default path configure:8062: checking --with-motif-lib argument configure:8076: result: no configure:8081: checking for location of Motif GUI libs configure:8099: result: /usr/lib/Motif1.1 configure:8202: checking for XShapeQueryExtension in -lXext And make starts with OPTION Motif: avalenti@ncc1n:/usr/local/src/vim/vim73/src >make | tee make-minimal.results mkdir objects CC="gcc -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MOTIF -I/usr/local/include " srcdir=. sh ./osdef.sh gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MOTIF -I/usr/local/include -g -O2 -D_FORTIFY_SOURCE=1 -o objects/buffer.o buffer.c (...) If I force usings gtk with configure --enable-gui=gtk2 make ends up with no error but gvim says: "E25: GUI cannot be used: Not enabled at compile time" How can I force gvim to compile using gtk2?
Arno Valentin (31 rep)
Apr 23, 2012, 04:42 PM • Last activity: Feb 8, 2021, 07:26 AM
0 votes
1 answers
521 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 the path with ssh without using the user-environment option and works fine) svccfg -s svc:/system/envir...
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 the path with ssh without using the user-environment option and works fine) svccfg -s svc:/system/environment:init setprop environment/PATH = astring: "/sbin:/bin:/usr/sbin:/usr/bin:/opt/gm/bin:/opt/gm/sbin:/usr/local/bin:/usr/local/sbin" svccfg -s svc:/system/environment:init refresh I still don't understand how to set a variable like this on Hp-ux, please don' answer edit /etc/PATH or edit /etc/profile because I had already tried it and doesn't work.
elbarna (13690 rep)
Jan 24, 2021, 10:32 PM • Last activity: Jan 27, 2021, 05:50 PM
1 votes
0 answers
279 views
Anybody still have HP C8000 discs anywhere by any chance?
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 thoroughly) to find it anywhere. I managed to dig up the HP-UX install CDs as well as the hardware enablement...
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 thoroughly) to find it anywhere. I managed to dig up the HP-UX install CDs as well as the hardware enablement patch for HP-UX 11i v1 , so I have a working system. It does not run the graphics at full speed as it's equipped with a FireGL T2 card that needs the aforementioned CD, or rather the X server and drivers from it - these are not part of the OS or the enablement patch. Appreciate if anybody can help.
theesem (51 rep)
Nov 17, 2020, 11:53 PM • Last activity: Nov 18, 2020, 02:08 AM
0 votes
1 answers
564 views
Migrate from HP-UX to Linux (Shell)
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.
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.
Papai from BEKOAIL (101 rep)
Aug 28, 2020, 07:51 AM • Last activity: Aug 29, 2020, 04:53 AM
6 votes
1 answers
204 views
Getting terminal access on old, strange hardware
I have an old, esoteric piece of special-purpose hardware (it's a HP logic analyser system). It's running HP-UX (because OLD). Right now, it boots right into an X session with the special logic-analyser software running. I'd like to get to a terminal prompt, so I can poke around with the internals (...
I have an old, esoteric piece of special-purpose hardware (it's a HP logic analyser system). It's running HP-UX (because OLD). Right now, it boots right into an X session with the special logic-analyser software running. I'd like to get to a terminal prompt, so I can poke around with the internals (out of curiosity). Given that this is basically a PC with some specialty hardware, what are the ways you can break out of a mildly locked-down X-session? I do have hardware access to the machine, but I'd like to avoid having to pull the disk or make boot-floppies for the thing (I don't have any other devices with floppy drives!).
Fake Name (519 rep)
Oct 3, 2013, 04:15 AM • Last activity: Aug 28, 2020, 03:35 PM
4 votes
2 answers
560 views
What is the purpose of the uucico shell on HP-UX, Solaris, and possibly other Unix varieties?
I'm not a Unix admin myself, but I work with Unix servers on a regular basis and am fairly familiar with their workings. So maybe this is something obvious, but it's not something I can find an answer for and my SAs all seem equally clueless. So I'm asking you guys. On Every HP-UX and Solaris server...
I'm not a Unix admin myself, but I work with Unix servers on a regular basis and am fairly familiar with their workings. So maybe this is something obvious, but it's not something I can find an answer for and my SAs all seem equally clueless. So I'm asking you guys. On Every HP-UX and Solaris server I've worked with there has been this shell, /usr/lib/uucp/uucico which seems to come out of the box with weird file permissions and is only used by the uucp user, but it is listed in /etc/shells as a valid shell. I've tried to find a good answer online, but as far as I can tell there doesn't seem to be a good reason for uucp to have its own special shell and could just as easily work with sh or something. So I think I must be missing something. What is the purpose of this shell? Why is it there, and what does it do?
Kefka (487 rep)
Jan 13, 2016, 12:39 AM • Last activity: Aug 7, 2020, 04:12 PM
1 votes
2 answers
103 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 | XXX | Thu Oct 18 03:32:00 UTC 2018 There are a lot of tab spaces between each set of characters and pipe. T...
I have a command response that looks something like that: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXX | XXX | Thu Oct 18 03:32:00 UTC 2018 XXX | XXX | Thu Oct 18 03:32:00 UTC 2018 There are a lot of tab spaces between each set of characters and pipe. The aim is to pick out the date from the response and then compare it with the current time, find the difference and make sure it's not more than 300 seconds. This is my first time making a shell script and I am not sure how this could work. I have tried using grep to get the entire line. Is there a way to neglect the spaces in between the characters? How do I convert that format of a date to the regular date format?
Aman Deep Middha (13 rep)
Oct 18, 2018, 11:55 PM • Last activity: Aug 4, 2020, 06:25 AM
-1 votes
2 answers
675 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/" ```
**2nd Command is getting ignored**
ssh -q -t -o ConnectTimeout=10 learnserver sudo su - root -c 'hostname' && "/grep PermitRootLogin /opt/ssh/etc/sshd_config/"
Praveenora (1 rep)
Jul 31, 2020, 07:23 AM • Last activity: Jul 31, 2020, 01:57 PM
Showing page 1 of 20 total questions