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
4 answers

Creating a simple gui in java for running a background process

Well, I had this question in mind for a long time. Even though I have a complex requirement,i will keep it as simple as possible. I have background process which takes two arguments which I use to execute from command line. The first argumets can…
Vijay
  • 65,327
  • 90
  • 227
  • 319
1
vote
1 answer

Find out the processes or scripts updating a file Solaris

I have a log file which captures the file transfer details from my server like rsh, sftp, ssh session details. I just want to backtrack and find out what all are the processes/scripts updating the log files. I am not quite sure how this information…
Balualways
  • 4,250
  • 10
  • 38
  • 51
1
vote
1 answer

Bash - iterate over a union of two (disjoint) arrays

I am writing a bash script (for an Open Solaris 11 machine). I have declared two arrays in the following way: rpool_fs=( "rpool" "rpool/ROOT" "rpool/ROOT/solaris" "rpool/export" ); shares_fs=( "shares" "shares/svn" ); I am able to…
Dušan Rychnovský
  • 11,699
  • 8
  • 41
  • 65
1
vote
10 answers

How do you pre allocate memory to a process in solaris?

My problem is: I have a perl script which uses lot of memory (expected behaviour because of caching). But, I noticed that the more I do caching, slower it gets and the process spends most of the time in sleep mode. I thought pre-allocating memory to…
Jagmal
  • 5,726
  • 9
  • 35
  • 35
1
vote
2 answers

Solaris process hanging in exit

On Solaris 9 and 10, both x86 and Sparc, we have a process that is hanging during exit: fe0b5994 lwp_park (0, 0, 0) fe0b206c slow_lock (ff388908, fe080400, 0, 0, 98, fe0abe00) + 58 ff376aa8 __deregister_frame_info_bases (2a518, 1, 0, 2daf0, 0,…
Douglas Leeder
  • 52,368
  • 9
  • 94
  • 137
1
vote
3 answers

Getting CPU usage stats from C on Solaris 10

On Solaris 10, and in C, I'd like to regularly query numbers like The CPU usage for specific LWPs within that OS process. The memory usage for that OS process. I already know how to do the latter by opening /proc/pid/psinfo and reading from that…
NickB
  • 1,471
  • 4
  • 14
  • 20
1
vote
1 answer

Printing an environment in C

I'm coding a shell currently and for some reason I can't get my printenv function to work. When a command is not given, it works. When two arguments are given, it also works. However, when one argument is given it does not work and prints…
user1642463
1
vote
4 answers

for a function in binary without source code, is there any way to get the number of parameters

I don't have the source code but have the binary. With command "nm binary_name" I could know the functions inside the binary. Can I know how many parameters a function has? Under solaris, is there anyway to do that? e.g, if the function is: func1(a…
Daniel
  • 621
  • 3
  • 9
  • 18
1
vote
2 answers

Internal implementation of atomic_cas_64() on Solaris on Sparc?

On 64-bit Solaris on Sparc, is the atomic_cas_64() function call implemented using load-link/condition-store? If not, what if any API does Solaris offer for user-mode C code to utilize ll/sc?
user82238
1
vote
1 answer

Build php with mysqli solaris - ld: fatal: Symbol referencing errors

I'm trying to build PHP with mysqli on Solaris 10. I hit a stupid problem, it used to work before but now I'm getting the error below. configure options: ./configure --with-mysql=/usr/local/mysql \ --with-mysqli=/usr/local/mysql/bin/mysql_config…
pn8830
  • 388
  • 3
  • 13
1
vote
1 answer

Why do I get the error "Can't install RMagick 2.13.1. Can't find MagickWand.h" when I try to install rmagick?

I recently started migrating my sites from Accelerator to SmartMachine. Everything was okay, but now I can't install the rmagick gem. When I run sudo gem install rmagick, the console shows the message: Can't install RMagick 2.13.1. Can't find…
GodFather
  • 3,031
  • 4
  • 25
  • 36
1
vote
2 answers

variable with multiple lines.delete first two lines in perl

I have a result of an sql query.it returns some 10 rows like below: if i do the below in my perl script. print $result it gives me the output : key value ----------- ------------------------------ 1428116300…
Vijay
  • 65,327
  • 90
  • 227
  • 319
1
vote
2 answers

how to calculate time difference in solaris

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?
user1667374
  • 161
  • 1
  • 2
  • 8
1
vote
1 answer

pthread_cancel don't work under solaris

#include #include #include #include char a[]="Hello"; void * thread_body(void * param) { while(1) printf("%s\n", param); } int main(int argc, char *argv[]) { pthread_t…
Alexey Matveev
  • 519
  • 1
  • 5
  • 13
1
vote
1 answer

suppress solaris CC linker warning symbol XXX has differing sizes

I got this linker error message: ld: warning: symbol `_VersioN' has differing sizes: (file ./libsfc/libssl48.so value=0x16; file ./libsfc/libsipc.so value=0x15); When I try to do link things: CC -o foo foo.o bar.o .... ld: warning: symbol…
Daniel YC Lin
  • 15,050
  • 18
  • 63
  • 96