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

Searching a particular string pattern out of 10000 files in parallel

Problem Statement:- I need to search a particular String Pattern in around 10000 files and find the records in the files which contains that particular pattern. I can use grep here, but it is taking lots of time. Below is the command I am using to…
arsenal
  • 23,366
  • 85
  • 225
  • 331
2
votes
1 answer

Subject Name not showing in my email using mail command

I am using mail command to send an email. It works fine. echo "Ignore this email" | mail -s "Test Data" DL-host-PD-WAS-TT_Emp@corp.host.com But the only confusion I have is, in my email I didn't get any subject and it always show as (no subject) in…
arsenal
  • 23,366
  • 85
  • 225
  • 331
1
vote
2 answers

How to extract version from tnsping output in AIX, SunOS, Linux and HP-UX

I want to fetch 10.2.0.4.0 from tnsping output in AIX, so I wrote tnsping tucson | grep Version | awk '{print $9}', but sometimes in other platforms like Linux the column varies, so I cannot use {print $9} everywhere. Is there a way such that The…
AabinGunz
  • 12,109
  • 54
  • 146
  • 218
1
vote
2 answers

Can I split a CSV file in multiple output files, adding a header to each file, in one go with awk?

I have a CSV file like this >cat test.in 1|aaa|bbb 1|ccc|ddd 2|xxx|yyy 2|www|zzz 2|www|ttt and I want to split it in separate files: the naming convention should be prefix.FIELD1.FIELD2.out FIELD1 should not be in the output file every output file…
1
vote
1 answer

atomic operation implementation

i am using atomic operation provided by SunOs in , which is void *atomic_cas_ptr(volatile void *target, void *cmp, void *newval); now to make is usable, i have to check whether old value returned by this function and passed by…
peeyush
  • 2,841
  • 3
  • 24
  • 43
1
vote
2 answers

Kill application which has been catched OutOfMemoryError

I have weblogic in Solaris 10 environment. My application had been caught OutOfMemoryError. My question about killing bad build of application from shell script, not about tuning java or my code. With Linux/BSD and Windows I can do pgrep for my…
Eir Nym
  • 1,515
  • 19
  • 30
1
vote
1 answer

how to make a solaris system environment same as another

I have a real host and an vm. they are both solaris system sjcux-c7build01# uname -a SunOS sjcux-c7build01 5.8 Generic_Virtual sun4v sparc sun4v The real host has been used for years.The vm is new created.For maintenance,we want to use vm instead…
clara
  • 182
  • 1
  • 2
  • 13
1
vote
0 answers

Life cycle of ssh connection

I want to know really what does the "PrintLastLog yes" do in the background, When I try to connect it's showing me the last login section, I'm searching for the command whose allows me get that result I have a SunOS machine and I didn't find…
mouad or
  • 11
  • 1
1
vote
0 answers

What Operating System services are necessary to support kernel-level threads?

I am studying Solaris and Linux and am viewing Kernel Level Threads (KLTs) as the fundamental entity that can be scheduled and dispatched by the OS. I know that a multi-threaded OS must store thread execution context and provide mechanisms to…
Anthony O
  • 622
  • 7
  • 26
1
vote
1 answer

How to replace comma with character in Unix bash

I have the below string: "BBBB,AAAA" seperated with comma. I need to append .done with each value of the string. When i try below. It doesnot work. I try to replace , with .done but its doesnot work. Also i need the .done at the end of both AAAA…
XING
  • 9,608
  • 4
  • 22
  • 38
1
vote
1 answer

Cannot connect Studio 3t for MongoDB v2.4.6 via SSH

I have SunOS and I am trying to connect from Studio 3T on Windows. I cannot connect and get the following error in the log: Database error(MongoIncompatibleDriverException): Server at xx.xx.xx.xx:27017 reports wire version 0, but this version of…
webwarrior
  • 87
  • 1
  • 9
1
vote
1 answer

missing libproc.h headers in solaris 11.0

I am trying to compile pfiles.c It includes #include And libproc.h includes #include /sys/secflags.h Both are missing from the image. root@solaris11:~# cat /etc/*release Oracle Solaris 11 11/11 X86 …
ilansch
  • 4,784
  • 7
  • 47
  • 96
1
vote
2 answers

How to comment a line and insert a another line below it?

I would like to comment a line 2 in abc.c and add the text New second line in line 3 of the file. abc.c: First line Second line Third line My modified file should look like First line //Second line New second line Third line I have tried using the…
Kripalini
  • 11
  • 1
1
vote
1 answer

Extraction of selected/specific files from tar archive results in different behavior on SunOS and Linux

I hope this fits the category "programming question". I have a tar-archive containing the folowing structure: Folder1/File1 Folder2/File2 Folder3/File3 Folder4/File4 My goal is to extract specific contents from this archive (which is huge and…
and0r
  • 305
  • 1
  • 4
  • 13
1
vote
1 answer

Grep "-C" command on all machine

I am using grep -C 1 "matching string" "xty.pom" This works on Linux machines, but the same code is not working on other platforms like AIX, SunOS_x64, HPUX. Is there any alternative to this so that same code logic works on all the platforms?
abhay kumar
  • 379
  • 1
  • 3
  • 12