solaris

How to collect directory listing along with each file CRC checksum?

怎甘沉沦 提交于 2019-12-11 04:48:07
问题 I use the following command to get dir listing in nix(Linux, AIX, Sunos, HPUX) platforms Command ls -latr Ouput drwxr-xr-x 2 ricky support 4096 Aug 29 11:59 lib -rwxrwxrwx 1 ricky support 924 Aug 29 12:00 initservice.sh cksum command is used for getting CRC checksum. How can the CRC Checksum be appended after each file something (including directory listing too) like below, maintaining the below format in these nix(Linux, AIX, Sunos, HPUX) platforms? drwxr-xr-x 2 ricky support 4096 Aug 29 11

JNI code crash with core dump when throw is called under 64 bit

杀马特。学长 韩版系。学妹 提交于 2019-12-11 04:38:01
问题 I'm working with java + c++ ( using JNI ) and i must load own native libraries but application failed with core dump when throw is called lthough the code is surrounded by an exception handler (see code below). It's the same code working without problem on linux 64bit, sparc 64bit and i386 32bit. The problem occurred when trying to run an application under java 8 on intel SunOs. The flag -m64 has been added to the Makefile and library was added to the LD_PRELOAD_64 and LD_LIBRARY_PATH_64 has

I am trying to excute java from solaris, getting invalid argument error

穿精又带淫゛_ 提交于 2019-12-11 04:01:08
问题 I am giving command like this bash-3.00$/app/jdk1.6.0_11/bin/java -version , it is giving error like bash-3.00: /app/jdk1.6.0_11/bin/java: invalid argument 回答1: "Invalid argument" is the error you get on Solaris when you try running a SPARC binary on an x86 platform. Make sure the java runtime you have installed in /app is the right version for your hardware - you can use the file command to check, for example: % file /net/pkg/export/pkg.sparc.sunos5/gnu/bin/ls /net/pkg/export/pkg.sparc

How to print preprocessor macros under Sun Studio?

孤街浪徒 提交于 2019-12-11 02:25:46
问题 I'm working under Sun Studio 12.3 on SunOS 5.11 (Solaris 11.3). I need to see the macros that Sun Studio defines to fix a bug report taken under the suite. This is similar to Solaris and Preprocessor Macros, but the cited question uses GCC and its preprocessor; and not Sun Studio's preprocessor. I've run CC -flags but I don't see an option similar to GCC's cpp -dM or g++ -dM -E - </dev/null . CC does have a -E , but its fairly anemic and does not print any preprocessor definitions: $ echo

wget proxy authentication error

自闭症网瘾萝莉.ら 提交于 2019-12-11 02:18:20
问题 I get the following error when trying to connect to a http URL through a proxy using wget the error: wget "http://pro.fastmarkets.com/feeds/default.aspx?usr=anzbank&pwd=587345bv98735vb2b56&feed=physicals-csv" -O /tmp/test.csv **wget: Error in /home/acdbaqa/.wgetrc at line 3.** --06:04:15-- http://pro.fastmarkets.com/feeds/default.aspx?usr=anzbank&pwd=587345bv98735vb2b56&feed=physicals-csv => `/tmp/test.csv' Connecting to 59.154.134.109:80... connected. Proxy request sent, awaiting response...

Equivalent of fesetflushtozero() on various Unices

最后都变了- 提交于 2019-12-11 01:31:18
问题 This question was migrated from Unix & Linux Stack Exchange because it can be answered on Stack Overflow. Migrated 6 years ago . HP-UX's libc has the function fesetflushtozero to switch floating-point behavior between “gradual underflow” and “flush to zero”. Despite combing through documentation and man pages of several Unix libc's (including glibc), I have yet to find how to achieve the same thing in other Unices. I'm particularly interest in Linux/glibc, Solaris and AIX. 回答1: As you have

how to delete 3 days old files using ftp in a shell script (Solaris OS)

放肆的年华 提交于 2019-12-11 00:59:28
问题 I am working on a script to create files basically replica of some tables and ftp those files to the remote machine.there is one more requirement to delete the 3days old files on the remote machine before dumping these files. I need help in writing the ksh for deleting 3 days old files on a remote machine using ftp 回答1: Normally, you would use: find . -mtime +3 -exec rm {} ';' or something similar (i.e., there may be other limiting clauses like -type f for regular files or -maxdepth 0 to do

How to build AWS C++ SDK on Solaris?

梦想的初衷 提交于 2019-12-11 00:16:53
问题 I am trying to build the AWS C++ SDK on Solaris, but I cannot do so successfully. I found this open issue on the AWS C++ SDK page that says it is possible, but there is no guide on it and I am hoping somebody here can help. Here is the command I use to build it: $ cmake ../aws-sdk-cpp/ -DCMAKE_BUILD_TYPE=Debug -DBUILD_ONLY="s3" Here is the output: -- TARGET_ARCH not specified; inferring host OS to be platform compilation target -- Building AWS libraries as shared objects -- Generating linux

Building Node.JS on Solaris: “Use of <stdbool.h> is valid only in a c99 compilation environment.”

别来无恙 提交于 2019-12-10 22:44:05
问题 I am attempting to install Node.JS on Solaris. This is out of the box Solaris 9/10 x86 (September 2010 which is most recent) and using only default packages. The directions I am following are here: https://github.com/joyent/node/wiki/Installation. I am using the latest stable version of Node.JS found on their home page http://nodejs.org Here is what I have tried... -bash-3.00# export PATH=$PATH:/usr/sfw/bin:/usr/xpg4/bin -bash-3.00# ./configure --prefix=/tmp/node Checking for program g++ or c

Tab and return character sequences for solaris?

∥☆過路亽.° 提交于 2019-12-10 22:28:29
问题 Is tab character in "\t" or "\r\t" in Solaris ? And the new line character sequence \n or \r\n ? thanx 回答1: \t = tab \r = carraige return \n = newline Solaris standard line delimiter is \n 回答2: A tab character is "\t", always. A newline on Solaris is "\n", the only time a newline is "\r\n" is in DOS/Windows land. 回答3: Tab is always "\t", carriage-return is "\r", and newline is "\n". To be very specific, the end-of-line (EOL) marker on DOS-based systems is "\r\n". It's apparently just a