solaris

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

雨燕双飞 提交于 2019-12-30 07:17:26
问题 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

How to overcome an incompatibility between the ksh on Linux vs. that installed on AIX/Solaris/HPUX?

久未见 提交于 2019-12-30 04:58:08
问题 I am involved in the process of porting a system containing several hundreds of ksh scripts from AIX, Solaris and HPUX to Linux. I have come across the following difference in the way ksh behaves on the two systems: #!/bin/ksh flag=false echo "a\nb" | while read x do flag=true done echo "flag = ${flag}" exit 0 On AIX, Solaris and HPUX the output is "flag = true" on Linux the output is "flag = false". My questions are: Is there an environment variable that I can set to get Linux's ksh to

How can I create a portable perl when I can't install modules on the target host?

陌路散爱 提交于 2019-12-29 04:19:48
问题 I need to run Perl applications I develop on cygwin Windows on HP unix / Solaris hosts. I am not a superuser on the unix machines and I can't touch the default Perl module location nor can I install modules to the default Perl module location. Also the unix installation lacks most basic modules and I can't change that. For example, I have a Perl application that needs Expect which has native C compiled parts to it. How would I roll out this application to unix with its required dependencies

How do I get the find command to print out the file size with the file name?

最后都变了- 提交于 2019-12-28 07:58:40
问题 If I issue the find command as follows: $ find . -name *.ear It prints out: ./dir1/dir2/earFile1.ear ./dir1/dir2/earFile2.ear ./dir1/dir3/earFile1.ear What I want to 'print' to the command line is the name and the size: ./dir1/dir2/earFile1.ear 5000 KB ./dir1/dir2/earFile2.ear 5400 KB ./dir1/dir3/earFile1.ear 5400 KB 回答1: find . -name '*.ear' -exec ls -lh {} \; just the h extra from jer.drab.org's reply. saves time converting to MB mentally ;) 回答2: You need to use -exec or -printf. Printf

How to get hostname in Solaris machines, through perl script?

杀马特。学长 韩版系。学妹 提交于 2019-12-25 04:12:47
问题 I tried this in linux machines my $a = $ENV{HOSTNAME}; print "\nhostname = $a\n"; i get this, hostname = sims5.eng.netapp.com i tried same in Solaris, but i get nothing. hostname = I can use below code, use Sys::Hostname; $host = hostname; but is there any other way of getting hostname without importing Sys::Hostname in solaris machines. Thanks. 回答1: If you reeeally don't want to use modules, you can just read the hostname from the following file: /etc/nodename 回答2: This is as @raina77ow

syntax error issue while storing array value Unix Solaris Korn Shell

瘦欲@ 提交于 2019-12-25 02:49:37
问题 Here is my command in shell script. x=($(echo $x1 | cut -f3 -d" " | cut -f1 -d"]")) syntax error at line 818 : `(' unexpected If I remove this line its working Note: The same script runs in Linux OS when i try it in Solaris it throws error. 回答1: It depends on your ksh version: ksh93 $ ksh --version version sh (AT&T Research) 93u+ 2012-08-01 $ x1="one two three]four" $ x=($(echo $x1 | cut -f3 -d" " | cut -f1 -d"]")) $ echo ${x[0]} three ksh88 $ what /usr/bin/ksh /usr/bin/ksh: Version M-11/16

Solaris: Mounting a file system on an application's handlers

强颜欢笑 提交于 2019-12-25 02:46:44
问题 When mounting an NFS filesystem, all data handling goes through the nfs client. How can I write my own handlers to use something other than NFS? An alternative would be a localhost NFS server but that seams awfully inefficient Edit Example of what should happen Normally with a filesystem you get: app reads/writes filesystem, Solaris sees where it is mounted and if it is disk then it reads/writes the disk. If it is software mirror it reads and writes to the mirror software. If it it is NFS it

Installing Solaris Studio 12.2 in Ubuntu

谁说胖子不能爱 提交于 2019-12-25 01:25:47
问题 I need help with installing Solaris Studio 12.2 on Ubuntu. I looked at this question already and it didn't help: Installing Solaris Studio 12.2? My problem with the solutions provided in that question is that I do not have a script to run when I extract the file I downloaded: SolarisStudio12.2-linux-x86-tar-ML.tar.bz2 To extract it I am just using the Ubuntu GUI, archive manager. Could this be my problem? Also I already posted this on askUbuntu: Got no response. 回答1: There is no installation

how to calculate time difference in solaris

怎甘沉沦 提交于 2019-12-25 00:24:42
问题 I have a process running in my server which user might not discard. I want to set a script which can calculate time difference and kill this automatically. Can anybody help me to calculate time difference between 2 dates in solaris? 回答1: By a little searching, this link may help. date1=$(/usr/xpg4/bin/awk 'BEGIN{srand();print srand()}') # ... processing ... date2=$(/usr/xpg4/bin/awk 'BEGIN{srand();print srand()}') 回答2: This is what I have in a script that records how long it was running by

Can Solaris x86 run old applications that were compiled for Solaris Sparc?

二次信任 提交于 2019-12-24 14:39:52
问题 Is the x86 edition able to run old apps? Does it take care of all endianness stuff? Please don't send me to Google :) I honestly tried and was not able to find a solid answer with some references. 回答1: No, you can't. You must use an emulator like QuickTransit to do that You can find more information on Google with the appropriate keywords Running Solaris Sparc Apps on X86 Solaris Runing Solaris SPARC software on x86-64 Transitive Translates SPARC Solaris Apps on Windows Solaris SPARC to x86