solaris

Identifying the preferred IPv6 source address for an adapter

南笙酒味 提交于 2019-12-01 02:28:36
If you have a IPv6 enabled host that has more than one global-scope address, how can you programmatically identify the preferred address for bind() ? Example address list: eth0 Link encap:Ethernet HWaddr 00:14:5e:bd:6d:da inet addr:10.6.28.31 Bcast:10.6.28.255 Mask:255.255.255.0 inet6 addr: 2002:dce8:d28e:0:214:5eff:febd:6dda/64 Scope:Global inet6 addr: fe80::214:5eff:febd:6dda/64 Scope:Link inet6 addr: 2002:dce8:d28e::31/64 Scope:Global UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 On Solaris you can indicate a preferred address with an interface flag and it is available programmatically

Print only matching word, not entire line through grep

有些话、适合烂在心里 提交于 2019-12-01 02:25:46
I am familiar with shell programming in bash, but for some reason egrep -o to print only matching words is not working and displays error as below. Environment is ksh unix console on putty and not linux or ubuntu terminal......any advice is appreciated! Terminal input & output : AB12 $ echo "i am a boy" | grep -w "am" i am a boy AB12 $ echo "i am a boy" | egrep -o "am" egrep: illegal option -- o usage: egrep [ -bchilnsv ] [ -e exp ] [ -f file ] [ strings ] [ file ] ... AB12 $ echo$ ksh: echo$: not found AB12 $ echo $SHELL /bin/ksh AB12 $ echo "i am a boy" | grep -o "am" grep: illegal option --

How to build Qt 5.2 on Solaris 10?

99封情书 提交于 2019-12-01 00:48:11
问题 The Qt page does not list pre-compiled Qt 5 packages for Solaris. Searching around, it does not seem to be included in the popular package repository OpenCSW, either. Some google hits suggest that building Qt 5 under Solaris involves some work under Solaris 10. Thus my question: How to build Qt 5.2 under Solaris 10? 回答1: Basically it is: cd qt-everywhere-opensource-src-5.2.0 ./configure -prefix $MY_PREFIX -opensource -confirm-license -nomake tests \ -R /opt/csw/lib/64 -R /opt/csw/X11/lib/64

Bash script to monitor process and sendmail if failed

╄→гoц情女王★ 提交于 2019-12-01 00:46:57
I realize that I can’t reliably count on ps | grep or variants to accurately tell me what PID is started. However I know what I need for interim until this problem is resolved in the next release. I have a process named Foo that is the parent, TEST1 and TEST2 are the child processes. If TEST1 and/or TEST2 dies off Foo will continue to run and will not respawn TEST1 and/or TEST2 which is needed to function properly. How do I know this because the program to restart TEST1 and/or TEST2 requires Foo to be restarted first. So when I want to monitor a child process, if failed sendemail that it

How do I configure proxy settings for Java in Solaris to handle Proxy Auto Config (PAC) scripts?

和自甴很熟 提交于 2019-11-30 23:29:23
I would like to configure Java proxy settings on Solaris to use a Proxy Auto Config (PAC) scriptt. I have found instructions for making the settings on a Windows machine using the Java control panel , but am having trouble finding where/how to make the same setting changes on a Solaris Java install. I would like to use the Proxy Auto Config (PAC) script, rather than manually setting proxy info per connection, or using a single proxy. I have a need to leverage multiple proxies for different types of URLs. Brian de Alwis Sadly the system proxy selector does not handle PAC/WPAD/JS specifications

Oracle下载地址

穿精又带淫゛_ 提交于 2019-11-30 23:21:09
ORACLE11GR2 Oracle Database 11g Release 2 (11.2.0.1.0) for Microsoft Windows (64-bit) http://download.oracle.com/otn/nt/oracle11g/112010/win64_11gR2_database_1of2.zip http://download.oracle.com/otn/nt/oracle11g/112010/win64_11gR2_database_2of2.zip http://download.oracle.com/otn/nt/oracle11g/112010/win64_11gR2_client.zip http://download.oracle.com/otn/nt/oracle11g/112010/win64_11gR2_grid.zip Oracle Database 11g Release 2 (11.2.0.1.0) for Microsoft Windows (32-bit) http://download.oracle.com/otn/nt/oracle11g/112010/win32_11gR2_database_1of2.zip http://download.oracle.com/otn/nt/oracle11g/112010

Print only matching word, not entire line through grep

本秂侑毒 提交于 2019-11-30 22:47:29
问题 I am familiar with shell programming in bash, but for some reason egrep -o to print only matching words is not working and displays error as below. Environment is ksh unix console on putty and not linux or ubuntu terminal......any advice is appreciated! Terminal input & output : AB12 $ echo "i am a boy" | grep -w "am" i am a boy AB12 $ echo "i am a boy" | egrep -o "am" egrep: illegal option -- o usage: egrep [ -bchilnsv ] [ -e exp ] [ -f file ] [ strings ] [ file ] ... AB12 $ echo$ ksh: echo$

Freeing of allocated memory in Solaris/Linux

可紊 提交于 2019-11-30 22:40:18
I have written a small program and compiled it under Solaris/Linux platform to measure the performance of applying this code to my application. The program is written in such a way, initially using a sbrk(0) system call, I have taken base address of the heap region. After that I have allocated 1.5 GB of memory using a malloc system call, Then I used a memcpy system call to copy 1.5 GB of content to the allocated memory area. Then, I freed the allocated memory. After freeing, I used the sbrk(0) system call again to view the heap size. This is where I get a little confused. In Solaris, even

Identifying the preferred IPv6 source address for an adapter

亡梦爱人 提交于 2019-11-30 22:03:35
问题 If you have a IPv6 enabled host that has more than one global-scope address, how can you programmatically identify the preferred address for bind() ? Example address list: eth0 Link encap:Ethernet HWaddr 00:14:5e:bd:6d:da inet addr:10.6.28.31 Bcast:10.6.28.255 Mask:255.255.255.0 inet6 addr: 2002:dce8:d28e:0:214:5eff:febd:6dda/64 Scope:Global inet6 addr: fe80::214:5eff:febd:6dda/64 Scope:Link inet6 addr: 2002:dce8:d28e::31/64 Scope:Global UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 On

Solaris GDB: Howto pause execution?

徘徊边缘 提交于 2019-11-30 20:34:37
I am using GDB to debug a closed source program on Solaris 10 x86. I attach gdb to the program and continue execution, however when I want to pause execution later to examine some memory I cant. When I press CTRL-C it only prints ^C instead of pausing the program and dropping me to a (gdb) prompt. bash-3.00# gdb --pid=1521 GNU gdb 6.6 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is