Solaris is a Unix operating system originally developed by Sun Microsystems (currently owned by Oracle) as a rebranding of SunOS 4.1.x in 1991.

learn more… | top users | synonyms (1)

2
votes
1answer
2k views

Bash vs ksh pipes

I am stuck with some problems with my scripts in ksh. FWIW the problem which I am unable to overcome is that when I use a structure such as this command | while read VAR1 do many.commands using ...
1
vote
1answer
466 views

Sending Emails from bash script in Solaris VM

I am trying to send emails using the following bash script: /bin/mail -s "#subject" "$emailto" < "$message" It works fine on my local machine but does not work on my VM. I looked it up and read ...
3
votes
0answers
778 views

ls and vim color on SunOS 5.8/Solaris 8

I want to use ls and vim with color on Sunos 5.8 SunOS 5.8 Generic_117350-11 sun4u sparc SUNW,Sun-Blade-2500 I have installed ls (GNU coreutils) 6.9 and vim 7.2 In ~/.cshrc: setenv TERM sun-color ...
1
vote
1answer
532 views

RAID 1 + 0, Solaris 10

I create the meta devices: metainit d102 1 1 /dev/dsk/c1t2d0s6 metainit d103 1 1 /dev/dsk/c1t3d0s6 metainit d104 1 1 /dev/dsk/c1t4d0s6 metainit d105 1 1 /dev/dsk/c1t5d0s6 then I make the mirrors ...
1
vote
1answer
329 views

NIS+ Solaris 10, Master Server Setup

this is my first time with NIS+ Naming Service. I want to configure my host to be a master root server using this script /usr/lib/nis/nisserver -r -d doc.com. And I got this error: > ...
1
vote
1answer
259 views

Why does dladm rename-link fail with “invalid argument”?

I am running Solaris 11.1 (in a VM) and have two NICs installed. At a root console, if I type dladm show-phys, it lists net0 and net1 and some info for each. I want to name the links more ...
0
votes
1answer
103 views

How do I delete this folder in Solaris?

I am not sure how or when the below folder was created.. But I am unable to delete or open it.. bash-3.2$ cd '+%d-%m-%y' bash: cd: +%d-%m-%y: No such file or directory bash-3.2$ rm -f '+%d-%m-%y' ...
2
votes
1answer
105 views

Browser fails to reach any host on Solaris 8

I'm running Solaris 8 on a Sun Ultra 2 connected to a Verizon router. nslookup seems to work (it finds google.com) but the existing browser (Netscape 4.76 - yes - it's very old) fails to reach any web ...
3
votes
1answer
539 views

Why does sendmail work differently in different shells?

The following code works when I directly run it in bash shell: SUBJECT="SUBJECT-"`date`; MAIL_FROM="abc@site.com"; MAIL_TO="abc@site.com"; MAIL_CC="abc@site.com"; MAIL_FILE="/path/of/html/body.html"; ...
1
vote
1answer
739 views

Default value for SO_RCVTIMEO option on Solaris

Is there any way to find out what is the default value set for option SO_RCVTIMEO on Solaris 10? If there is a way to find out how would one go about changing it? P.S. I am aware of ability of ...
5
votes
2answers
2k views

bourne shell if [ -e $directory/file.$suffix ]

I've been looking inclusive I even checked the if manual for bash and tried in cli mode. #!/bin/sh CONFIG_DIR="/var/opt/SUNWldm/" read option if [ $option -eq 9 ]; then ret=1 elif [ -e ...
2
votes
2answers
961 views

Prompt “-bash-3.2$” vs. “bash-3.2$” in SunOS 5.10

When I log into a server running SunOS 5.10, my prompt initially is "-bash-3.2$" Then when I run the following commands, I can see that the prompt is slightly different after typing bash (it no ...
2
votes
3answers
4k views

“Access denied” when logging to Solaris virtual machine using ssh

I have got a Solaris 10 on a VMware virtual machine in Windows. This is what I did: 1) Installed PuTTY. 2) Checked whether ssh is running or or not in my Solaris desktop as below: bash-3.00# ps ...
3
votes
3answers
663 views

Solaris 11 randomly crashed

I have a Solaris 11 machine that randomly crashed this morning. After physically restarting the machine, I noticed that all of the drives were marked with a Sense Key: Soft_Error both in dmesg and in ...
0
votes
1answer
799 views

Solaris 10, pkgtrans command

What is the difference between these two commands? 1. pkgtrans /cdrom/cdrom0/Solaris_10/Product /var/spool/pkg/stream.pkg all 2. pkgtrans -s /cdrom/cdrom0/Solaris_10/Product ...
0
votes
1answer
1k views

Solaris 10, useradd command

When I used useradd command to add a new user for my Solaris 10 System, I specify /home/user-name to be its home directory. but the command didn't run successfully, and when I put the ...
1
vote
1answer
215 views

How do I ensure that only one instance of my ksh script runs on Solaris using NFS? [duplicate]

Possible Duplicate: What Unix commands can be used as a semaphore/lock? I have read many similar post and the solution seems to be to use flock. flock does not exist on my system and I ...
3
votes
3answers
3k views

Solaris: find the day of last Monday,Tuesday,…Sunday by means of shell script

I'm trying desperatly to find a bash or ksh routine that allows me to find for example the previous Monday,Tuesday,Wednesday,... preceding today's date. Additonal it has to work on plain vanilla ...
2
votes
1answer
438 views

Network bandwidth measurement on Solaris

I want to install pathtest or a program like it in a Sparc server running solaris 10. The purpose is to make a speedtest server to my remote sites. It is mentioned in pathtest FAQ that it only ...
0
votes
2answers
152 views

file command + how to view all results from file command

I use the file command in order to verify if file (PATH) is text/ascii file or encrypted file Because file command have allot of results ( small example in example 1 ) I want to get the all ...
0
votes
0answers
165 views

flar archive creation

I'm facing issue, I need to perform a patch of a solaris flar image and all the commands take quite some time to perform it. To avoid me being in front of it I prepared a script that almost works ...
0
votes
4answers
407 views

targeted network speed over LAN

I have a Solaris 11 system which has several NFS exports which are accessed my other systems within my LAN. I use a Linux system as a client for testing. I wrote a quick script to test read speed and ...
2
votes
2answers
1k views

How to use “fuser” to get process list for nested folder while using with parent folder as argument?

I am using fuser command to get the list of processes accessing a folder. However if the process is working on a file present in a inner folder, executing fuser command on the parent does not provide ...
3
votes
2answers
2k views

Read a file and copy to another file

I'm having a issue, I need to copy the file contents and remove a couple of lines if they match the output from a previous command. But so far, I'm having an issue in maintaining the file lines ...
3
votes
3answers
781 views

Why are the UIDs in Solaris so very high? Is it alright to use lower numbers?

I'm going to try out Solaris 11, and was wondering why the default UIDs for new users are so ridiculously high - e.g. starting at 65534 and then dropping downwards (65533, 65532, ...)? Is there a good ...
4
votes
1answer
538 views

Ksh loses data after piping 16K bytes

I recently found that ksh may lose some data after printing more than 16K bytes to the stdout if it is blocked for a couple of seconds. This test.sh script prints out 257*64 (16448) bytes: ...
1
vote
2answers
497 views

Copying only differences?

I want to recursively copy one directory over another, however I only want to copy differences. The reason is that I'm doing this on Solaris on a volume which is snapshot, i.e. if I'm copying 100gig ...
0
votes
2answers
112 views

Including a date in a filename

Inside a directory, there are 150 files named like ABLIMITS.TXT. How do I rename them to ABLIMITS_date.txt prompting the user for date?
3
votes
1answer
260 views

Use all system memory in Solaris

I am doing server testing and intentionally trying to crash a virtual Solaris server by using all memory. Server has a ulimit of 15 GB (several hundred GB of total system/swap memory). Is there a ...
4
votes
2answers
709 views

How to get notified when svcadm restarts a service that died

I'm using svcadm to keep my node.js server running on Illumos, is there a way to get notified if svcadm restarts the server because it crashed? Specifically if the process went down on its own and not ...
0
votes
1answer
137 views

linux/solaris + manipulation of Standard Output

I run the following line on linux/solaris machine ( all output will write in to /tmp/Log from application.bin ) ./application.bin 1>>/tmp/Log We can see the content of the /tmp/Log file ...
3
votes
2answers
1k views

Solaris 11.1 and ipfilter

I'm trying to get IP Filter to work on Solaris 11.1. I'm following the official Solaris 11.1 guide. When the host is booted it doesn't pick up the ipf.conf that I expect. Here's the contents of ...
2
votes
2answers
6k views

Solaris + display file time stamp [year][month][day]

I have Solaris 10 machine I need to verify time stamp of some file in my Solaris machine And to get the following format [year][month][day] Example of working command on Linux ls -l ...
1
vote
2answers
978 views

Get a list of users with access to the host

I tried to go into /home and list all the subdirectories but it seems that all dirs that are not mine are hidden. I also tried cat /etc/passwd but that didn't list my very own ID I was logged in ...
2
votes
1answer
372 views

Can i update my commands( like awk,sed) to the latest release in solaris?

bash-3.00# awk '{print NR}' f1.txt 1 2 3 4 but FNR does not print anything. awk '{print FNR}' f1.txt the above line does not gives me any output,seems that the awk that i am having in my ...
1
vote
1answer
201 views

Linux + Solaris how to verify the last execute process from list of process

I need advice: How to verify which is the last scan_sys.sh process that run in my linux or solaris ? my target is to kill all scan_sys.sh process , except the latest scan_sys.sh ( the last execute ...
3
votes
3answers
645 views

What process is sending TCP SYNs on Solaris 10?

Some process on my Solaris 10 machine is sending TCP SYNs to a remote machine. The remote machine never responds, so the connection is not established. How do I find out what process is initiating ...
1
vote
1answer
182 views

ttyb serial port connectivity issues

I am having issues with a device connected to my Sun V440 ttyb serial port. How would I test the connectivity of the port to see if any data is moving across the connection? I am trying to see if the ...
1
vote
1answer
216 views

solaris + fit egrep for solaris

On Linux machines I use this syntax, in order to match all VALID ip's. My question: what needs to change for egrep command in order to run the egrep on Solaris? According to egrep manual page "-o" ...
1
vote
3answers
338 views

Make Apache view hidden files (Solaris)

Is it possible to make an Apache server like this Apache/1.3.41 Server at user.it.uu.se Port 80 display hidden files (i.e., those who start with a dot) in a specific directory? I have some ...
5
votes
1answer
712 views

Solaris 11 login banner

How do you add a (GUI) login banner in Solaris 11? I've done quite a bit of searching and have found many things on SSH and FTP banners/motd for remote logins, but not much for the local GUI login. I ...
2
votes
0answers
356 views

PS command ouput limited to 80 bytes only [duplicate]

Possible Duplicate: How can I get a full process list in solaris, without truncated lines? The output of ps command only returns 80 bytes. Below is the text from manual pages of Solaris ps ...
0
votes
2answers
258 views

Jboss application startup and shutdown asks for password. How to automate with init script?

Jboss application startup and shutdown of BMC-IDM asks for password (called keystore password, some Java stuff). How to automate with init script? Stop application > stop_idm_suite.sh Suite ...
2
votes
2answers
651 views

Is there any impact of reaping zombie processes?

I will execute following command for reaping zombie /usr/bin/preap $(ps -ef | grep defunct | grep -v grep | awk '{ print $2 }' | xargs) Is there any service impact of this approach ?
0
votes
2answers
373 views

Is a shell script is a programming Language [closed]

This is the first question in UNIX: I was started shell script from 2 days before. But I have a conflict: is a shell script a special programming language for a specific shell??
2
votes
1answer
1k views

What is the difference between cmask and umask?

What is the difference between the umask setting that can be found in /etc/profile and the cmask setting that can be found in /etc/default/init? What is the difference between the two? When will one ...
2
votes
1answer
2k views

How to ensure that anonymous FTP has been disabled on a Solaris 10 system?

What line in which configuration files in the /etc/ftpd directory do I have to check to ensure that anonymous FTP has been disabled? From my understanding now, to ensure that anonymous FTP is ...
4
votes
2answers
3k views

What does “pollsys” mean? Solaris “truss” output

> truss -p 6482 /2: pollsys(0xE517AD88, 1, 0xE517AE30, 0x00000000) = 0 /2: pollsys(0xE517AD88, 1, 0xE517AE30, 0x00000000) = 0 /2: pollsys(0xE517AD88, 1, 0xE517AE30, 0x00000000) = 0 ...
6
votes
1answer
467 views

Files bigger than max(off64_t) on Solaris, eg “/proc/../as”

How do I read or seek from a file that's bigger than the maximum off64_t? The problem arises because the address space of a process is represented in the /proc/.../as file, which is a huge sparse file ...
2
votes
3answers
7k views

What's the meaning of NP and UP in the password field of the shadow file

I found some entries in a shadow file whose meaning I don't understand. user:UP::::::: user1:NP::::::: What does UP and NP mean? In addition to those 2, the same shadow file has the normal hashed ...