hp-ux

HPUX安装

我只是一个虾纸丫 提交于 2019-11-30 07:00:45
安装所需的介质和资料: HP-UX 11.0 Core OS Install/Update/Recovery 光盘 (1 张 ) HP-UX 11.0 Support Plus 光盘 (1 张 ) HP-UX 11.0 Application Software 光盘 (5 张 ) 1 .安装前的准备: 在系统的安装之前检查机器的各线连接,将机器通过网线接到 hub 上,并且在确保各个外设(磁带机 . 磁盘阵列等)加电后,然后再开机。 2 .在屏幕上将看到: "Processor is booting from fist availiable device To discontinue.press any keuy within 10 seconds" 在 10 秒之内按任意键,之后屏幕将显示一 9 个命令集画面: Main Menu……………………………………………. Command Description Boot[PRI|ALT|<path>] Boot from specified path ……………………… ……………………… ……………………… ……………………… ……………………… ……………………… Main Menu : Enter command > 3 .将 HP-UX11.0CoreOSInstall/Update/Recovery 放入光驱或 DVD, 4

filename last modification date shell in script

风流意气都作罢 提交于 2019-11-30 01:49:40
问题 I'm using bash to build a script where I will get a filename in a variable an then with this variable get the file unix last modification date. I need to get this modification date value and I can't use stat command. Do you know any way to get it with the common available *nix commands? 回答1: Why you shouldn't use ls : Parsing ls is a bad idea. Not only is the behaviour of certain characters in filenames undefined and platform dependant, for your purposes, it'll mess with dates when they're

What processes are using which ports on unix?

半世苍凉 提交于 2019-11-28 18:37:06
问题 I need to find out what ports are attached to which processes on a Unix machine (HP Itanium). Unfortunately, lsof is not installed and I have no way of installing it. Does anyone know an alternative method? A fairly lengthy Googling session hasn't turned up anything. 回答1: Assuming this is HP-UX? What about the Ptools - do you have those installed? If so you can use "pfiles" to find the ports in use by the application: pfiles prints information about all open file descriptors of a process. If

Getting past dates in HP-UX with ksh

半腔热情 提交于 2019-11-28 12:29:08
问题 Ok, so I need to translate a script from a nice linux & bash configuration to ksh in hp-ux. Each and every command expects a different syntax and i want to kill myself. But let's skip the rant. This is part of my script anterior=`date +"%Y%0m" -d '1 month ago'` I basically need to get a past date in format 201002. Never mind the thing that, in the new environment, %0m means "no zeroes", while actually in the other one it means "yes, please put that zero on my string". It doesn't even accept

activate RTTI in c++

半腔热情 提交于 2019-11-28 09:36:51
Can anybody tell me how to activate RTTI in c++ when working on unix. I heard that it can be disabled and enabled. on my unix environment,how could i check whether RTTI is enabled or disabled? I am using the aCC compiler on HPUX. Are you using g++ or some other compiler? In g++ RTTI is enabled by default IIRC, and you can disable it with -fno-rtti . To test whether it is active or not use dynamic_cast or typeid UPDATE I believe that HPUX's aCC / aC++ also has RTTI on by default, and I am unaware of a way to disable it. Check your man pages . gcc has it on by default. Check if typeid(foo).name(

Unable to build a working FIPS capable OpenSSL on HP-UX

时光毁灭记忆、已成空白 提交于 2019-11-28 05:13:15
问题 I am building openssl-1.0.2f with openssl-fips-2.0.12 (I am going to talk about this configuration in the following lines, but at the end of the post I'll specify all the configurations that I tried), on HP-UX11.31 ( pa-risc2 ([HPE]: pa-risc1.1 pa-risc2.0)). Everything is good, but when I try using it ( in FIPS mode ), it doesn't work. Note : Given the fact that cwd is set to the build folder (not the installation folder where RPATH points to), I need to instruct the linker where to search

In a unix shell, how to get yesterday's date into a variable?

只愿长相守 提交于 2019-11-27 18:44:16
I've got a shell script which does the following to store the current day's date in a variable 'dt': date "+%a %d/%m/%Y" | read dt echo ${dt} How would i go about getting yesterdays date into a variable? Basically what i'm trying to achieve is to use grep to pull all of yesterday's lines from a log file, since each line in the log contains the date in "Mon 01/02/2010" format. Thanks a lot If you have Perl available (and your date doesn't have nice features like yesterday ), you can use: pax> date Thu Aug 18 19:29:49 XYZ 2010 pax> dt=$(perl -e 'use POSIX;print strftime "%d/%m/%Y%",localtime

Cross-platform way to get PIDs by process name in python

与世无争的帅哥 提交于 2019-11-27 17:26:40
Several processes with the same name are running on host. What is the cross-platform way to get PIDs of those processes by name using python or jython ? I want something like pidof but in python. (I don't have pidof anyway.) I can't parse /proc because it might be unavailable (on HP-UX). I do not want to run os.popen('ps') and parse the output because I think it is ugly (field sequence may be different in different OS). Target platforms are Solaris, HP-UX, and maybe others. You can use psutil ( https://github.com/giampaolo/psutil ), which works on Windows and UNIX: import psutil PROCNAME =

How to get the command line args passed to a running process on unix/linux systems?

非 Y 不嫁゛ 提交于 2019-11-27 05:50:16
On SunOS there is pargs command that prints the command line arguments passed to the running process. Is there is any similar command on other Unix environments? markus_b There are several options: ps -fp <pid> cat /proc/<pid>/cmdline | sed -e "s/\x00/ /g"; echo There is more info in /proc/<pid> on Linux, just have a look. On other Unixes things might be different. The ps command will work everywhere, the /proc stuff is OS specific. For example on AIX there is no cmdline in /proc . This will do the trick: xargs -0 < /proc/<pid>/cmdline Without the xargs, there will be no spaces between the

activate RTTI in c++

天涯浪子 提交于 2019-11-27 03:03:18
问题 Can anybody tell me how to activate RTTI in c++ when working on unix. I heard that it can be disabled and enabled. on my unix environment,how could i check whether RTTI is enabled or disabled? I am using the aCC compiler on HPUX. 回答1: Are you using g++ or some other compiler? In g++ RTTI is enabled by default IIRC, and you can disable it with -fno-rtti . To test whether it is active or not use dynamic_cast or typeid UPDATE I believe that HPUX's aCC / aC++ also has RTTI on by default, and I am