solaris

ube error: _mm_aeskeygenassist_si128 intrinsic requires at least -xarch=aes

橙三吉。 提交于 2019-12-13 15:39:57
问题 I'm working under Sun Studio 12.3 on SunOS 5.11 (Solaris 11.3). Its providing a compile error that I don't quite understand: $ /opt/solarisstudio12.3/bin/CC -xarch=sse2 -xarch=aes -xarch=sse4_2 -c test.cxx "test.cxx", line 11: ube: error: _mm_aeskeygenassist_si128 intrinsic requires at least -xarch=aes. CC: ube failed for test.cxx Adding -m64 produces the same error. There's not much to the test program. It simply exercises a SSE2 intrinsic, and an AES intrinsic: $ cat test.cxx #include

get the creation time from core dump

别等时光非礼了梦想. 提交于 2019-12-13 14:16:47
问题 I am working on a c++ application. I got some core files from the client which he says are generated now but is not willing to say how are they generated and what he has done from generating them. I doubt he is wrong and may be he gave me the dump which were generated long time ago. Is there any way where I can get the actual creation time of the file? I doubt the files may be created in some other servers and he has transferred them. Anyone pls help. If its not in the core file, may be Unix

replacement for cut --output-delimiter

百般思念 提交于 2019-12-13 13:00:34
问题 I created a script that was using cut -d',' -f- --output-delimiter=$'\n' to add a newline for each command separated value in RHEL 5, for e.g. [root]# var="hi,hello how,are you,doing" [root]# echo $var hi,hello how,are you,doing [root]# echo $var|cut -d',' -f- --output-delimiter=$'\n' hi hello how are you doing But unfortunately when I run the same command in Solaris 10, it doesn't work at all :( ! bash-3.00# var="hi,hello how,are you,doing" bash-3.00# echo $var hi,hello how,are you,doing

UNIX programming

和自甴很熟 提交于 2019-12-13 10:30:33
问题 Hi i want to convert UNIX date to normal date (YYYY-MM-DD) 22222,0,0,0,14387 33333,0,0,0,14170 44444,0,0,0,14244 55555,0,0,0,14190 66666,0,0,0,14528 77777,0,0,0,14200 88888,0,0,0,0 99999,0,0,0,0 here 5th column represents UNIX date i want to convert into 22222,0,0,0,2009-05-23 and similarly remaining rows can any body help me 回答1: A simple awk script ought to do it awk -F, 'BEGIN{OFS=","} { print $1,$2,$3,$4,strftime("%Y-%m-%d",$5) }' myFile.txt Cheers. EDIT: You're not using unix timestamps,

parsing time command in perl [closed]

旧城冷巷雨未停 提交于 2019-12-13 08:49:23
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . When i issue the command /usr/bin/time script.sh it can vary in time because of the load of course (sometimes could be 10 secs and sometime could be 2 minutes), problem is that i need notification if time execution is higher than 30 sec (could also include minutes..) and warning if is 20-30 seconds. What is the

Group more than one regular expression in the same command

妖精的绣舞 提交于 2019-12-13 08:42:57
问题 How to group two regular expression in one command example if have a file like: age22 Helwan University Engineering Faculty ITI-intake33 bye FOr NOW i am mahmoud 34 mie 4 a And I want to search for the line that start with by and end with W ??? Using grep command 回答1: You don't need more than one regular expression for this. grep '^by.*W$' filename.txt should suffice. 来源: https://stackoverflow.com/questions/12921217/group-more-than-one-regular-expression-in-the-same-command

Solaris 64 bit function pointer problem

牧云@^-^@ 提交于 2019-12-13 07:29:56
问题 Environment: OS: Sun Solaris 10 Processor: AMD 64 bit I have an application which uses net-snmp library. The application is portable (code level) to various OS and processor. In net-snmp, you can register a logging callback (a function pointer) which gets called when something is to be logged. The problem is that when I run the application, it seg faults when net-snmp tries to call the callback function I have registered. The callback address that gets registered is 0xffe30b90 but net-snmp

Secure FTP using private key authentication in java

流过昼夜 提交于 2019-12-13 07:24:45
问题 import com.jcraft.jsch.*; import com.jcraft.jsch.JSchException; import oracle.jdbc.driver.OracleDriver; import java.io.*; import java.util.*; import java.sql.*; import java.net.*; public class SecureFTP { public static void main(String[] args) throws IOException , ClassNotFoundException, JSchException, SftpException{ JSch jsch = new JSch(); File file = new File("/home/xxxxx/.ssh/id_rsa"); Session session = null; URL keyFileURL = null; URI keyFileURI = null; if (file.exists()) { keyFileURL =

Dtrace for memory overflow?

百般思念 提交于 2019-12-13 07:13:37
问题 I want to write a Dtrace so that i can analyse if overflow_error is happening in a process i am executing . I just know that this is an error thrown as std::overflow_error . I don't have much idea about how to write a D-Trace . I need some beginner guide and if someone can let me know how to write it . The process name i am running is say superbug_returns . How can i write a D-Trace for it analyzing if above scenario is happening or not? I am working on solaris 回答1: It would be probably much

JVM crashing in Solaris box Problematic frame: # C [libc.so.1]# [ timer expired, abort… ]

心不动则不痛 提交于 2019-12-13 06:58:32
问题 JVM(JDK 1.7) crashing in Solaris(5.11) box with following error. # A fatal error has been detected by the Java Runtime Environment: # # SIGBUS (0xa) at pc=0xffffffff7eb83be0, pid=11981, tid=3599 # # JRE version: Java(TM) SE Runtime Environment (7.0_67-b01) (build 1.7.0_67-b01) # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode solaris-sparc compressed oops) # Problematic frame: # C [libc.so.1+0x83be0]# [ timer expired, abort... ] $ pkg info entire Name: entire Summary: