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

Is there a way to specifically un-tar files by themselves in Unix?

I'm working on a script that serves to search a tar for strings and output files containing those strings to a folder- this is done so that I don't have to untar a big file and then search through that and then delete the unnecessary files This is…
Skorpius
  • 2,135
  • 2
  • 26
  • 31
1
vote
2 answers

grep command to print follow-up lines after a match

how to use "grep" command to find a match and to print followup of 10 lines from the match. this i need to get some error statements from log files. (else need to download use match for log time and then copy the content). Instead of downloading…
Marie
  • 51
  • 1
  • 1
  • 5
1
vote
1 answer

Should gcc builtins always be resolved during the compilation step, or the linker step?

In running gcc 3.4.3 on a Solaris 5.11 box I see that builtin functions are left undefined during compilation, but are resolved against libgcc.a when the Solaris linker links against libgcc.a. On gcc 4.5.2 on another Solaris box, the same builtin…
xsquared
  • 31
  • 2
1
vote
1 answer

Setup Unix Environment from Current Directory

I have a SunOS system, which is what complicates this situation from being simple. I have some scripts that run from different paths (unavoidable) and the system has a path structure that has the "System Environment" in the path, which I can then…
Audi.RS4
  • 25
  • 6
1
vote
1 answer

Subversion - Local Server

Looking at installing Subversion to control a large existing project - six developers and currently around 6,000+ source files. The project exists in a directory tree on the Solaris machine. Developers telnet or ssh to the machine and edit the…
prosmart
  • 54
  • 7
1
vote
1 answer

How to simulate File::Stat.ino in jruby or java?

I am currently trying to have Logstash work on Solaris with the File Input method. But I am encountering some bugs (see LOGSTASH-665). After digging a lot, it appears that native support for File.stat on my system (SunOS 5.10, JDK 1.6.0_21, 32 bit)…
Aldian
  • 2,592
  • 2
  • 27
  • 39
1
vote
2 answers

Escape newline character in heredoc on solaris

I am using bash and this works on Linux: read -r -d '' VAR<<-EOF Hello\nWorld EOF echo $VAR > trail i.e the contents of the file on Linux is Hello\nWorld When i run on Solaris trial file has Hello World The newline(\n) is being replaced with…
Nida Sahar
  • 698
  • 4
  • 13
  • 29
1
vote
1 answer

sed regular expression failed on solaris

Under Solaris 5.10, Why this regexp doesn't match a line like tag="12447" sed "s/tag=\"[0-9]+\"/emptytag/" test.xml (I noticed that -r is not implemented in the sed version)
Stef
  • 3,691
  • 6
  • 43
  • 58
1
vote
1 answer

cx_Oracle CREATE TABLE AS returns ORA-01036: illegal variable name/number

I'm trying to CREATE TABLE AS using cx_Oracle on Python 2.4.6 The following code: query = '''CREATE TABLE TMP_STATS_1 AS select NUM from INF_CARD where IMPORT_DATE between to_date(:datepass || ' 00:00:00','dd/mm/yyyy hh24:mi:ss') and …
Marcus
  • 23
  • 6
1
vote
1 answer

SmartOS configuring zone networking issue - no connectivity

I am experimenting a bit with SmartOS on a spare dedicated server. I have 2 IP adresses on the server. for ex 1.1.1.1 and 2.2.2.2 (They are not in the same range). The global zone was configured my global zone to use the IP 1.1.1.1 Here is the…
1
vote
1 answer

awk program from solaris machine gives warnings in linux nawk

I am trying to run the script which was in the solaris in the linux machine. It's showing warnings nawk: cmd. line:7: warning: escape sequence\<' treated as plain <' I can't change the version of the awk. Is there any other way to remove this…
user3153014
  • 308
  • 1
  • 4
  • 16
1
vote
4 answers

Solaris 10: fast detection of SIGCHLD / process exiting

On Solaris 10, I have a parent and child process. I kill the child process with kill -KILL. I want the fastest possible detection of this in the parent process (this is a master/slave system and the goal is for the parent to request its backup to…
NickB
  • 1,471
  • 4
  • 14
  • 20
1
vote
2 answers

Will UDP socket pool improve datagram delivery successful rate and be more efficient?

I am developing a UDP client module in Solaris using C, and there are 2 design modules: (1) Create a socket, and send all messages through this socket. The receive thread only call recvfrom on this socket. (2) Create a group of sockets. When…
Nan Xiao
  • 16,671
  • 18
  • 103
  • 164
1
vote
1 answer

Adding at the end of single line by matching using shell scripts

I have a shell script test.sh and the content is whithin the shell script i'm using exec command to run the java command export T1= exec java -XX:+UseConcMarkSweepGC -XX:+PrintClassHistogram .. dosomething Now i have modify the argument…
anish
  • 6,884
  • 13
  • 74
  • 140
1
vote
2 answers

How can a usage counter in Solaris 10 /proc filesystem decrease?

I'm trying to determine the CPU utilization of specific LWPs in specific processes in Solaris 10 using data from the /proc filesystem. The problem I have is that sometimes a utilization counter decreases. Here's the gist of it: // we'll be reading…
Andrew
  • 636
  • 1
  • 9
  • 16