Questions tagged [sunos]

SunOS is a version of the Unix operating system developed by Sun Microsystems for their workstation and server computer systems. The SunOS name is usually only used to refer to versions 1.0 to 4.1.4 of SunOS. These versions were based on BSD, while SunOS version 5.0 and later are based on UNIX System V Release 4, and are marketed under the brand name Solaris.

SunOS is a version of the Unix operating system developed by Sun Microsystems for their workstation and server computer systems. The SunOS name is usually only used to refer to versions 1.0 to 4.1.4 of SunOS. These versions were based on BSD, while SunOS version 5.0 and later are based on UNIX System V Release 4, and are marketed under the brand name Solaris.

183 questions
4
votes
2 answers

"tail -f" makes disk full?

our application server (sunOS) always gets disk full. and our Infrastructure team said it's caused by too many "tail -f" processes. Because the app rotates log file frequently, it caused the dead link and no disk space? I've never heard of this…
user462872
  • 323
  • 1
  • 4
  • 14
4
votes
2 answers

Solaris and Java contiguous memory clarification needed

Background: We have a vendor-supplied Java application that has a somewhat large Java Heap. Without going into too much info, the app is a black box to us, yet we feel we need to take it upon ourselves to try to tune the performace and fix…
Tom17
  • 406
  • 5
  • 18
4
votes
1 answer

Compiling boost on Sunos

I have just started with using boost libraries. For one of our projects i want to compile Boost 1.39.0 on Sun OS using sun compiler. However if i compile it using steps mentioned in…
Yogesh Arora
  • 2,216
  • 2
  • 25
  • 35
4
votes
2 answers

Folders tree with rights

In OS X and SunOS OS there is no exist the 'bash tree command'. To plot a tree "graph" of folders i use the following instruction: find . -type d -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g' Or this to show files too. find . -print | sed -e…
Jorge Vega Sánchez
  • 7,430
  • 14
  • 55
  • 77
4
votes
1 answer

Send the output of html file within the email body

I have an html file under /tmp folder as chart.html file which will have the output like below image when you open that html file I have a shell script that I am using to send the chart.html file as an attachment in an email with some body…
AKIWEB
  • 19,008
  • 67
  • 180
  • 294
3
votes
2 answers

clock_gettime() undefined symbol SunOS

I'm trying to build a program that takes 2 timestamps: the timestamp at the end of a first process, then the timestamp at the start of a second process. Then get the delta of the two. But I cannot compile because the linker complains about…
ice03
  • 33
  • 4
3
votes
1 answer

Installing mongodb on solaris -- bin/mongod: cannot execute binary file

I am trying to install the latest mongodb on SUN OS 5.9 using package from http://www.mongodb.org/downloads. After I unzip the package on solaris, I get the following error when I run the following bin/mongod --help bin/mongod: cannot execute…
surajz
  • 3,471
  • 3
  • 32
  • 38
3
votes
1 answer

Website showing PHP source

I have a server running on SunOS 5.1, and I'm having an issue with the source of a php file displaying. The source starts displaying after => when setting up an array. After the first => it displays the rest of the file. Why would this be…
Nathan
  • 2,699
  • 5
  • 30
  • 44
3
votes
0 answers

Solaris awk - $0 behaving differently depending on context

Note: this issue only applies to Solaris's default awk. GNU awk/gawk and Solaris's XPG4 awk do not exemplify this behavior. Furthermore, this is more of a "why" question, not a "how do I fix this" question. Using the following example input: a 10 b…
Mr. Llama
  • 20,202
  • 2
  • 62
  • 115
3
votes
1 answer

Different search paths for tclsh

Any one knows how can I invoke the tclsh in the Tcl code due to different paths to tclsh in various platforms (Linux, SUN)? For example in SUN: #!/usr/bin/sun/tclsh in Linux: #!/usr/bin/linux/tclsh How can I use the same Tcl code and execute it in…
user364128
  • 31
  • 1
3
votes
1 answer

awk script not working properly in SunOS (which worked well with Red Hat)

I was looking out for a file replacement functionality to be done in awk. I had a solution that worked well for Red Hat Linux flavour but it is not working well with SunOS 5.10. It would be great if someone can help troubleshoot the issue. Source…
Ra-V
  • 69
  • 2
  • 10
3
votes
4 answers

How can I pad a file beyond 1024 characters in a unix environment?

I have a file that I need to pad each line with spaces to around 1100 characters from a bash script. Each line in the file currently has 900 characters. The natural way to to this is awk -F, '{printf("%-1100s\n",$0)}' src.txt > dst.txt However, I…
BIBD
  • 15,107
  • 25
  • 85
  • 137
3
votes
1 answer

Sending syslog messages from perl

We are sending a lot of syslog messages from our perls script using the facility code of local2. This works really well on Red Hat but on SunOS the messages don't appear to go to local2. For example, here is a minimal script #!/usr/bin/perl use…
MikeKulls
  • 873
  • 1
  • 10
  • 22
3
votes
0 answers

process vmstat log files using script/application

I want to monitor the performance metrics of solaris 10 server like average memory and cpu usage. At the moment i have set up a script to run vmstat once every x seconds and log to a file. vmstat x >> perf.log kthr memory page…
Radan
  • 1,630
  • 5
  • 25
  • 38
2
votes
2 answers

Unnamed namespace and iostream result in "!= being illegal operation"

#include #include struct A { friend bool operator==( const A & a, const A & b ){ return true; } }; namespace { bool operator!=( const A &a, const A & b){ return !(a==b); } } int main(int…
elmo
  • 1,189
  • 1
  • 10
  • 35
1
2
3
12 13