solaris

grep + match exactly IP address with Regular Expression

别来无恙 提交于 2019-12-11 08:17:52
问题 my target is to match exactly IP address with three octes , while the four IP octet must be valid octet - between <0 to 255> For example I have the following IP's in file $ more file 192.9.200.10 192.9.200.100 192.9.200.1555 192.9.200.1 192.9.200.aaa 192.9.200.@ 192.9.200.: 192.9.200 192.9.200. I need to match the first three octets - 192.9.200 while four octet must be valid ( 0-255) so finally - expects result should be: 192.9.200.10 192.9.200.100 192.9.200.1 the basic syntax should be as

What is SRU in solaris? How to find the SRU number?

假装没事ソ 提交于 2019-12-11 07:57:44
问题 I used pkg list entire command , and i got the output for version column as follows : 0.5.11-0.175.1.0.0.24.2 . How to find the SRU from this? Can we upgrade/ downgrade to a particular SRU ? 回答1: SRU is an abbreviation for Support Repository Update , installing new package versions from the support repo for that OS, much like installing a patch cluster for older Solaris releases. The various fields in the version is explained in Oracle Solaris Package Versioning. Oracle only makes SRUs

How to make modeless dialog stay on top of its parent in Solaris CDE

时光怂恿深爱的人放手 提交于 2019-12-11 07:31:11
问题 I have a problem with Qt modeless dialog in Solaris 8/10 machine using CDE (Common Desktop Environment). The dialog serve as drawing panel/popup that required user to choose the tools from main application before proceeding to draw on it. The problem is whenever user click on main application toolbar, then the dialog will goes behind the main application. Notice that this is the behavior pertaining to CDE only, Open Windows enviroment or Solaris Java environment don't cause this issue. My

Is there a transparent way to force 64-bit gcc compilation on Solaris

你说的曾经没有我的故事 提交于 2019-12-11 07:08:11
问题 Is there a way to force '-m64' not overriding CXXFLAGS/CFLAGS. I want automatic x64 build environment like in Linux/BSD amd64. Why do I need this? The problem is complexity of the project I need to be buit as x64 on Solaris. It contains several parts and each may use specific C/C++ compiler flags. So, I can't just run: CXXFLAGS=-m64 O2 ... CFLAGS=-m64 -O2 ... ./configure because there are no common C/C++ flags. All I need is the way to transparently append '-m64' to every gcc/g++ call. 回答1:

Problem compiling gcc 4.4.0 on OpenSolaris 2009.6

我只是一个虾纸丫 提交于 2019-12-11 06:36:18
问题 I am attempting to compile gcc 4.4.0 on opensolaris 2009.6 Currently in the box (which is a AMD 64bit machine), I have the gcc 3.4.6 installed. I unpacked the gcc 4.4.0 tarball. I set the following env variables: export CXX=/usr/local/bin/g++ export CC=/usr/local/bin/gcc Then I ran "configure && make" and this is the error message that I got: checking for i386-pc-solaris2.11-gcc... /export/home/me/wd/gcc/gcc-4.4.0/host-i386-pc-solaris2.11/gcc/xgcc -B/export/home/me/wd/gcc/gcc-4.4.0/host-i386

What causes SunCC crash in g3mangler.cc when using `-std=XXX`?

妖精的绣舞 提交于 2019-12-11 05:53:42
问题 I'm trying to determine what is causing SunCC 5.11 - 5.13 to die with ../lnk/g3mangler.cc, line 825 (message from SunCC 5.13). Here's what it looks like during a compile. The machine is a 4th gen Core i5, so its got the features which correspond to the macros. /opt/solarisstudio12.4/bin/CC -DDEBUG -g3 -O0 -std=c++03 -D__SSE2__ -D__SSE3__ -D__SSSE3__ -D__SSE4_1__ -D__SSE4_2__ -D__AES__ -D__PCLMUL__ -D__RDRND__ -D__AVX__ -xarch=avx -m64 -native -KPIC -template=no%extdef -w -erroff=wvarhidemem

call stack shows SIGBUS, what does that mean

人盡茶涼 提交于 2019-12-11 05:17:59
问题 My call stack shows the following: --- called from signal handler with signal 10 (SIGBUS) --- 001301b8 allocate__t24__default_alloc_template2b0i0Ui (20, 20, 309940, 36, fc55 1a00, 0) + a4 0011dcb8 __nw__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc _template2b0i0_3RepUiUi (10, 10, 7773e8, 0, 0, 0) + 14 0011dcf8 create__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_all oc_template2b0i0_3RepUi (a, a, 7773e8, a, 0, 0) + 24 0011e0bc replace__t12basic

cx_Oracle CREATE TABLE AS returns ORA-01036: illegal variable name/number

时光毁灭记忆、已成空白 提交于 2019-12-11 05:17:18
问题 I'm trying to CREATE TABLE AS using cx_Oracle on Python 2.4.6 The following code: query = '''CREATE TABLE TMP_STATS_1 AS select NUM from INF_CARD where IMPORT_DATE between to_date(:datepass || ' 00:00:00','dd/mm/yyyy hh24:mi:ss') and to_date(:datepass || ' 23:59:59','dd/mm/yyyy hh24:mi:ss')''' curs.execute(query, datepass=datep) Returns: cx_Oracle.DatabaseError: ORA-01036: illegal variable name/number Taking out the CREATE TABLE TMP_STATS_1 AS and leaving only the SELECT statement, works

Do not start loop if there is no files in directory?

流过昼夜 提交于 2019-12-11 05:14:38
问题 All, I am running BASH in Solaris 10 I have the following shell script that loops in a directory depending on the presence of CSV files. The problem is with this piece of code is that it still does one loop even if there is no CSV files in that directory and then calls SQL loader. SQLLoader then produces a log file because there is no file to process and this is beginning to mess up my directory filling it with log files. for file in *.csv ; do echo "SQLLoader is reading : " $file sqlldr

Why shutdown a socket can't let the select() return?

守給你的承諾、 提交于 2019-12-11 04:48:44
问题 In my program, there is a thread blocking on a listen socket, which waits for other connections, and the code likes this: { ...... FD_ZERO(&fd_sets); FD_SET(sock_fd, &fd_sets); ret_val = select(sock_fd + 1, &fd_sets, NULL, NULL, NULL); if (ret_val > 0) { accept(sock_fd, NULL, NULL); ...... } else { ...... } Per my understandings, if in other thread, shutdown the socket, and the code likes this: { ...... shutdown(sock_fd, SHUT_RD); ...... } I think the select() in the previous thread should