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

Mercurial installation issue

We've installed mercurial 1.4.1 and python 2.6.2 on a solaris 8 box. Now some hg commands work as expected, others fail. I was able to initialize a repository (hg init) and add a file (hg add) but the committing (hg commit) leads to an error…
Andreas Dolk
  • 113,398
  • 19
  • 180
  • 268
1
vote
0 answers

Unzip file and give permissions (UNIX, Solaris)

How could we unzip file and give (rwx) permissions to files and directories inside .zip file in Solaris? unzip -d It should be done in one command. Not first unzip and then chmod -R +rwx
slisnychyi
  • 1,832
  • 3
  • 25
  • 32
1
vote
3 answers

Solaris: find files not containing a string (alternative to grep -L)

I want to search files that does not contain a specific string. I used -lv but this was a huge mistake because it was returning all the files that contain any line not containing my string. I knew what I need exactly is grep -L, however, Solaris…
Tony
  • 716
  • 9
  • 15
1
vote
1 answer

how to backup stdout of running shell script

Here is a short example of the problem Short script that writes every 10 seconds test to its stdout > cat write.sh #!/bin/sh while [ 1 ];do echo test sleep 10 done And here is how we execute it, where we redirect the stdout to file named…
YanivN
  • 391
  • 1
  • 3
  • 9
1
vote
2 answers

Solaris CPU run queue

Is there a command which can tell me whats in the Solaris run queue? I can get a count using vmstat, but I need to know what processes/threads are in there.
Vasu
  • 2,406
  • 3
  • 20
  • 26
1
vote
4 answers

wget command not found in jenkins but runs Ok from unix

I put this PATH=$PATH:/bin:/opt/swe/bin on jenkins and wget command works fine but when I remove this or commented out, it doesn't work and generated the following error: /var/jenkins/workspace/ORANGE_HOST_ATT/ORANGE_HOST_ATT.sh: line 119: wget:…
user2370590
  • 837
  • 1
  • 16
  • 31
1
vote
1 answer

simulate "tail -F" on old system

Since file input is buggy for logstash on Solaris, I am trying to use the pipe input instead. A configuration based on a "tail -f" works great, but the problem is that the file is being rolled over every time it reaches 20MB, which happens about…
Aldian
  • 2,592
  • 2
  • 27
  • 39
1
vote
2 answers

grep OR command not working unix solaris

I able to do single grep but can not do OR search in unix solaris Please see below examples i tried... -bash-3.00$ echo "Hello hi" | grep -i "Hello" Hello hi -bash-3.00$ echo "Hello hi" | grep -i "Hello\|hi" -bash-3.00$
logan
  • 7,946
  • 36
  • 114
  • 185
1
vote
0 answers

Undefined symbol g_strv_length when installing Mono on Solaris 10 x86

I am trying to install Mono on Solaris 10 x86 and I run the following commands before encountering an error: bash-3.00# ./configure --prefix=/usr bash-3.00# gmake install . . (lots of stuff) . Making install in test gmake[2]: Entering directory…
user2089851
  • 151
  • 1
  • 3
  • 12
1
vote
4 answers

storage size of 'p' isn't known (sys/procfs.h struct psinfo p) error on Solaris

I'm getting this error when trying to compile this simple program. The psinfo struct is in procfs.h. It's erroring on the definition line. Why would it not know the size of psinfo? #include int main(int argc, char *argv[]) { …
David Mulder
  • 7,595
  • 11
  • 45
  • 61
1
vote
1 answer

javac (and other jdk executables) produce NoClassDefFoundError

On Solaris 10, I'm using JDK 1.5.0_22 and when I run any of the JDK executables (javac, native2ascii, javadoc, etc) in the JDK/bin directory that require tools.jar to run, I get this error (run with and without arguments): Exception in thread…
JavaHoss
  • 11
  • 2
1
vote
2 answers

Stat command to capture last modified date of file in Solaris

How to use stat command in solaris to get last modified time of file in a variable. Consider my file is "abc.txt" in path /home/xyz/Desktop
user3164140
  • 591
  • 2
  • 8
  • 15
1
vote
2 answers

Unable to Install Sipp in solaris sparc 5.10

I am trying to install SIPp on solaris sparc 5.10. when I am firing a "make" command, it is giving me an error. lake42.rice.iit.edu]/> make make: Fatal error in reader: Makefile, line 22: Unexpected end of line seen I am stuck at this point and not…
user268409
  • 11
  • 2
1
vote
2 answers

sed command to replace newline character is not working in solaris but working in linux

I have following sed command working in linux box. but the same is not working in solaris box. Please correct me what the problem is ? a=`sed ':a;N;$!ba;s/\n/ /g' file.txt` Throws, -bash-3.00$ a=`sed ':a;N;$!ba;s/\n/ /g' file.txt` Label too long:…
logan
  • 7,946
  • 36
  • 114
  • 185
1
vote
1 answer

how to edit file at remote server?

i want to edit file at remote server using solaris the original file at the remote server that i want to edit is : 11111 22222 33333 44444 55555 66666 77777 and i want to remove the 5th line "55555" and replace it by "00000" i try this ssh…
mondo32
  • 33
  • 7