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

Purpose of issetugid?

According to the man pages for issetugid, the call is supposed to either (1) alert to uid/gid changes; or (2) alert to a possible tainted environment. The function name suggests a third purpose. First question: what is it purpose? When I look at the…
jww
  • 97,681
  • 90
  • 411
  • 885
1
vote
1 answer

The correct syntax of a quantifier in a regular expression pattern with grep in Solaris?

I have to search in many files with several lines, the lines with a telephone number of exactly ten digits. Examples of the lines: telephoneNumber: 66727166501 telephoneNumber: 6672716650 telephoneNumber: 66727166 telephoneNumber: 6672716651 So…
1
vote
2 answers

strftime '%z', (localtime) is not working as expected in solaris machines

I tried this code in linux machines, my $sysdate = strftime "%Y%m%d%T", (localtime); my $daylight_saving_time = strftime '%z', (localtime); i get below output, sysdate = 2013051402:12:02 daylight_saving_time = -0400 I tried same in…
user2380503
  • 21
  • 2
  • 3
1
vote
1 answer

solaris recv infinite receiving

When you run this code, the response does not come. Soket is a state of being connected. So forever is in the standby state return value without not. please help me. ... sock = socket(PF_INET, protocol, 0); ... char recv_data[102400] = {0,}; while…
1
vote
1 answer

In solaris vsnprintf core dump in strlen function is any method to resolve this?

I am calling vsnprintf , as below If Vargs is NULL then vsnprintf coredump in strlen function,but same core work fine in other OS like linux , AIX .... Is there any solution for this ? I can't avoid passing NULL into varags , I want vsnprintf must…
Syed Shamsheer
  • 193
  • 1
  • 2
  • 8
1
vote
1 answer

Redirecting STDOUT and STDERR in Shell script

I have a script that uses the exec command to redirect STDOUT and STDERR to a file. The script works fine under Solaris 9. I am testing it on Solaris 10 on VMware and it fails at the exec command. prog=`basename $0` log="${LOCLOG}/${prog}$$" if…
Hameed
  • 2,227
  • 1
  • 21
  • 31
1
vote
2 answers

How to convert date to string in unix shell

i need some help to convert date into a string i have an sql database running on my unix box which stores the date in str eg:1371509465 i would like to run a query to find if any future dates exist in the database is there an equivalent function to…
user2280769
  • 210
  • 4
  • 13
1
vote
1 answer

prstat on solaris - can you make it flash when size exceeds a limit?

I have been told to make prstat flash the background from white to black a few times when any value in the size category passes a threshold. Is there a way to edit the command and put this in here or will this never happen?
1
vote
2 answers

Automatically recreate a lot of different links to renamed directories or files

I need to rename a lot of directories and files in my Linux/Solaris machines. There are many links that pointed to those directories/files. So first I create the following script in order to find all directories that I want to rename (like…
user1121951
1
vote
2 answers

SocketTimeoutException on Solaris 9 not being thrown

I have a connection that should recieve a heartbeat every two minutes. However occasionally something happens and the network goes bad. For some reason Solaris believes that the connection is still alive, No IOException is raised locally, however…
Tristan
  • 219
  • 3
  • 13
1
vote
1 answer

Building c programs to target HP/Solaris OS

I have to write a C program can be run on HP UX & Sun Solaris. Do we have to build the executable on both machines? Is there a way to build on Linux say centos or ubuntu using standard compilers/linkers to ensure the executable will run on HP &…
vinaym
  • 467
  • 1
  • 6
  • 18
1
vote
1 answer

Simplifying BASH command

I'm finding myself having to do this every once in a while, and was wondering if there's a way to simplify this command? In essence, all I'm doing is copying a file and re-naming it. The functionality to create A1, A2.. B1, B2.. is non-negotiable…
Roberto Navarro
  • 948
  • 4
  • 16
1
vote
4 answers

grep + match exactly IP address with Regular Expression

my target is to match exactly IP address with three octes , while the four IP octet must be valid octet - between <0 to 255> For example I have the following IP's in file $ more file …
user1121951
1
vote
3 answers

Cannot create POSIX named semaphores due to a permissions error (EACCES)

This is a tough one. Cannot create a POSIX named semaphore (sem_open) no matter the name on a system where there are no semaphores (thus no chance of name overlapping). This is a non-privileged user able to create a shared memory using…
Makanaky
  • 33
  • 1
  • 4
1
vote
0 answers

Solr relevant Boosting

I have various field like name,location, landmark. If I search for any keyword and it hits name field much more than location then I want to boost name more that location. Again if it hits location more then I want to boost location more. Can you…
user1629986
  • 51
  • 1
  • 6