solaris-10

DH key size must be multiple of 64, and can only range from 512 to 2048 (inclusive)

坚强是说给别人听的谎言 提交于 2019-12-01 20:53:07
问题 I have a set-up in which I am executing a build from Jenkins on a Solaris Server connecting via sshexec task in ANT . On trigerring the build, it is throwing below error: com.jcraft.jsch.JSchException: Session.connect: java.security.InvalidAlgorithmParameterException: DH key size must be multiple of 64, and can only range from 512 to 2048 (inclusive). The specific key size 2047 is not supported. After some google search, I came to know that it might be fixed by updating to Java 8. I did that,

DH key size must be multiple of 64, and can only range from 512 to 2048 (inclusive)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 20:51:06
I have a set-up in which I am executing a build from Jenkins on a Solaris Server connecting via sshexec task in ANT . On trigerring the build, it is throwing below error: com.jcraft.jsch.JSchException: Session.connect: java.security.InvalidAlgorithmParameterException: DH key size must be multiple of 64, and can only range from 512 to 2048 (inclusive). The specific key size 2047 is not supported. After some google search, I came to know that it might be fixed by updating to Java 8. I did that, however, still no success. Can anyone please let me know how to fix it? Brian Low Our fix: Security

Is write() safe to be called from multiple threads simultaneously?

两盒软妹~` 提交于 2019-12-01 12:42:41
Assuming I have opened dev/poll as mDevPoll , is it safe for me to call code like this struct pollfd tmp_pfd; tmp_pfd.fd = fd; tmp_pfd.events = POLLIN; // Write pollfd to /dev/poll write(mDevPoll, &tmp_pfd, sizeof(struct pollfd)); ...simultaneously from multiple threads, or do I need to add my own synchronisation primitive around mDevPoll ? Solaris 10 claims to be POSIX compliant. The write() function is not among the handful of system interfaces that POSIX permits to be non-thread-safe , so we can conclude that that on Solaris 10, it is safe in a general sense to call write() simultaneously

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

get Hard Link Count in Java

拜拜、爱过 提交于 2019-11-30 05:20:09
问题 I need something to get the hard link count from a file in a solaris10 os in java. parsing ls -l is not an option. I tried using posix for java http://bmsi.com/java/posix/index.html but couldn't manage to get it working. Is there any other lightweight API or code to get this info? 回答1: In Java 7 you can use the new file attributes API to get it with java.nio.file.Files.getAttribute(path, "unix:nlink") . The "unix" attribute view is not actually defined as part of the standard API (and the

getting a previous date in bash/unix

我们两清 提交于 2019-11-29 10:47:02
I am looking to get previous date in unix / shell script . I am using the following code date -d ’1 day ago’ +’%Y/%m/%d’ But I am getting the following error. date: illegal option -- d As far as I've read on the inetrnet , it basically means I am using a older version of GNU. Can anyone please help with this. Further Info unix> uname -a SunOS Server 5.10 Generic_147440-19 sun4v sparc SUNW,Sun-Fire-T200 Also The below command gives an error. unix> date --version date: illegal option -- version usage: date [-u] mmddHHMM[[cc]yy][.SS] date [-u] [+format] date -a [-]sss[.fff] Several solutions

getting a previous date in bash/unix

喜欢而已 提交于 2019-11-28 04:12:41
问题 I am looking to get previous date in unix / shell script . I am using the following code date -d ’1 day ago’ +’%Y/%m/%d’ But I am getting the following error. date: illegal option -- d As far as I've read on the inetrnet , it basically means I am using a older version of GNU. Can anyone please help with this. Further Info unix> uname -a SunOS Server 5.10 Generic_147440-19 sun4v sparc SUNW,Sun-Fire-T200 Also The below command gives an error. unix> date --version date: illegal option -- version

Error importing hashlib with python 2.7 but not with 2.6

我是研究僧i 提交于 2019-11-26 20:53:46
I'm on Solaris 10 (x86). Until now, I was using python2.6. Today, I installed python2.7 and I have a weird error occuring when importing hashlib on 2.7, but not on 2.6: Python 2.6: root@myserver [PROD] # python2.6 -c "import hashlib" root@myserver [PROD] # Python 2.7: root@myserver [PROD] # python2.7 -c "import hashlib" ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor

Error importing hashlib with python 2.7 but not with 2.6

霸气de小男生 提交于 2019-11-26 07:46:26
问题 I\'m on Solaris 10 (x86). Until now, I was using python2.6. Today, I installed python2.7 and I have a weird error occuring when importing hashlib on 2.7, but not on 2.6: Python 2.6: root@myserver [PROD] # python2.6 -c \"import hashlib\" root@myserver [PROD] # Python 2.7: root@myserver [PROD] # python2.7 -c \"import hashlib\" ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File \"/usr/local/lib/python2.7/hashlib.py\", line 139, in <module> globals()[__func_name]