Questions tagged [solaris]

Solaris is a commercial Unix operating system sold by Oracle, previously (before 2010) from Sun Microsystems. It can run on SPARC or x86 hardware.

Solaris is a Unix operating system originally developed by Sun Microsystems as a successor to SunOS. Oracle Solaris, as it is now known, has been owned by Oracle Corporation since Oracle's acquisition of Sun in January 2010. OpenSolaris (the open-source version of Solaris) was abandoned at that point.

Solaris is known for its scalability, especially on SPARC systems (), and for originating many innovative features such as DTrace, ZFS and Time Slider. Solaris supports SPARC-based and x86-based workstations and servers from Sun and other vendors.

Resources

2780 questions
1
vote
1 answer

How can I compile 64-bit Postgres bindings for Perl on Solaris?

I'm running 64-bit Solaris 10, and I have self-compiled Perl 5.10 and Postgresql 8.4.1 installed in /usr/local, both 64 bits. Solaris came with 32-bit Postgresql 8.1.4 installed in /usr, but it is not running. When I attempt to install DBD::Pg, it…
Rob Kennedy
  • 161,384
  • 21
  • 275
  • 467
1
vote
0 answers

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

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,…
Nan Xiao
  • 16,671
  • 18
  • 103
  • 164
1
vote
4 answers

How can I print the duplicates in a file only once?

I have an input file that contains: 123,apple,orange 123,pineapple,strawberry 543,grapes,orange 790,strawberry,apple 870,peach,grape 543,almond,tomato 123,orange,apple i want the output to be: The following numbers are repeated: 123 …
t28292
  • 573
  • 2
  • 7
  • 12
1
vote
1 answer

Why does code work on Solaris but not on Linux?

I have a C code which is working fine on Solaris machine but the same code is giving segmentation fault for sometimes and some other time producing different output. The following is the part where I am getting difference in both the machines: FILE…
1
vote
2 answers

Password hashing using Python produces odd results on Solaris 10 & 11

Using an answer from a serverfault submission I generated password hashes for /etc/shadow, however the result on Windows (Cygwin) or Mac: mistral.local:~(16)+>- python -c 'import crypt; print…
Philip Kearns
  • 377
  • 4
  • 14
1
vote
6 answers

How can I automatically disregard the last three lines of a file?

I am using the following command: head -36 file.txt > file1.txt where the file is 39 lines , but the thing is i'm checking that the file is 39 lines and so place the number 36 in the comment. So is there a way that the command calculates the…
t28292
  • 573
  • 2
  • 7
  • 12
1
vote
2 answers

Command Line XML Diff Utility for Solaris

Can anyone suggest a command line xml differencing tool for Solaris? I want to call one in a regression test script, so it's important that the tool can be called from the command line and return a status to indicate whether the files contain any…
daveg
  • 147
  • 1
  • 7
1
vote
2 answers

Porting application written in C from Solaris to Windows XP

I have an application written in C on Solaris that I have to port to Windows XP. I would like to know that what are the libraries availabe to achieve this task. Also what is the best GUI development tool for the same and what are the steps to follow…
user219141
  • 11
  • 2
1
vote
2 answers

How to create installer for solaris

I have already createdrpm file for my application. It works fine for Fedora linux. also the same worked fine for linux mint. But Solaris does not support rpm. So how to create installer package for solaris OS. I have solaris 10 linux as…
Sunil Kumar Sahoo
  • 53,011
  • 55
  • 178
  • 243
1
vote
4 answers

Bash script regex for file size

I'm trying to extract the size (in kb) from a file. Trying to do so as follows: textA=$(du a) sizeA=$(expr match "$textA" '\(^[^\s]*\)') textB=$(du b) sizeB=$(expr match "$textB" '\(^[^\s]*\)') echo $textA echo $sizeA echo $textB echo $sizeB [[…
gcandal
  • 937
  • 8
  • 23
1
vote
2 answers

how to set the charset of smb/cifs server on Solaris 11

I am setup a Solaris 11 server which provides cifs/smb service since it will perform as a home NAS with ZFS. I setup the smb server and I can read/write files via smb from my Windows 7 desktop, but I found the chinese character in the file name is…
Yang
  • 11
  • 2
1
vote
1 answer

Bash script on Solaris, using ":" on an array does not always work

I have a strange issue with array manipulation within a bash script on Solaris. I am using the syntax ${varName[@]:index} to obtain all of the elements in array varname after the specified index. However, if there is only one element after the…
Phil
  • 1,897
  • 4
  • 25
  • 48
1
vote
1 answer

downloading failed after 3gb

i have used a java code to download a file from a server and after the file is downloaded the file gets deleted from the server. The total size of file is 200gb. the downloading starts and shows download successful. when i check the downloaded file…
anonymous
  • 244
  • 2
  • 4
  • 23
1
vote
0 answers

Unable to get print out using Java Silent print program in solaris OS?

I have written the below code in java for printing a simple pdf file, public class Test { public static void main(String[] args) throws PrinterException, IOException { PrinterJob pj= PrinterJob.getPrinterJob(); …
stacktome
  • 790
  • 2
  • 9
  • 32
1
vote
2 answers

How to get the folder size in BYTES or the smallest unit possible in SOLARIS

Is there any script or command to get the FOLDER size in BYTES or BITS so that every small change in the files in the folder is reflected by checking the Folder size in SOLARIS/
TommyT
  • 1,707
  • 3
  • 17
  • 26