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
0
votes
1 answer

Variable as Tar file name in SunOs 5.10

I am trying to get the following result in the 1.files archived as tar with current date as a part of the tar name. 2.files removed once archived. /usr/sap/ST1/POC/backtest/*.txt has 2 txt files. (find /usr/sap/ST1/POC/backtest/*.txt )| xargs -I %…
Manoj Kumar
  • 811
  • 2
  • 10
  • 22
0
votes
1 answer

How to start nethack on solaris 11.3?

I downloaded this package from the package manager: http://pkg.oracle.com/solaris/beta/info/0/pkg%3A%2F%2Fsolaris%2Fgames%2Fnethack@3.4.3,5.11-0.151.0.1%3A20101105T054109Z
james
  • 135
  • 1
  • 6
0
votes
3 answers

sunOS's sed in bash script - replace pattern: nothing changes

ANSWER: as mlv and sorontar mentioned, my SED version is BRE and doesn't support | (pipe). so in my case is possible use something like: sed "s/\( [namevlu]*=\"\)BASE\.$str1/\1BASE\.$str2/g" which match name=" and value=" but not other=" and…
Triptaminer
  • 1,285
  • 1
  • 8
  • 8
0
votes
2 answers

Row value adding to column

Actually I am pretty new in shell scripting. suppose i have a 2 columns separated by comma OFFER_DELETE_SC_LEVEL,146 OFFER_DELETE_SC_LEVEL,25 OFFER_DELETE_SC_LEVEL,18 OFFER_DELETE_SC_LEVEL,17 OFFER_DELETE_SC_LEVEL,27 I have another row. This row…
0
votes
2 answers

How subtract days from date in bash shell on Solaris 11?

I've been trying subtrac some days $days from a date $date with format yyyy-MM-dd, but nothing has worked on Solaris 11. Some solution is a 'trick' with the timezone, but it depends on the timezone and I think that is exactly that, a trick. I would…
SerchRac
  • 171
  • 1
  • 12
0
votes
0 answers

Is there any command by which I can keep the spacing in my attachment

I am using mailx command in my script. It is deleting all the spacing in the file and even on the attachment. Could you please help me in getting the desired output i.e. with the space after each line as it is in the input file. { echo -e "Todays…
oshin
  • 9
  • 1
0
votes
0 answers

I can't make shared library in SunOS 5.8

I'm going to make shared library in SunOS 5.8 OS Version is 5.8 Generic_108528-29 and g++ version is 2.95.3 20010315 (release) [vector(** NONE **):/tmp/test ] uname -a SunOS vector 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Fire-V440 [vector(** NONE…
0
votes
1 answer

How do I get CPU information by using python on SunOs systems?

I want to get CPU information programatically. I already coded a solution for Linux, but I need to build a similar solutions for SunOS. Does anyone have any idea? def getCpusInfo(): cpuinfos = [] cpuinfo = {} for line in…
Ronaldo Felipe
  • 402
  • 2
  • 13
0
votes
1 answer

Declare date using awk

I need help in completing the below script in shell. Requested format is to print previous, current and next business days (should exclude weekends and holidays). text name : holiday.txt #!/usr/bin/sh cur_date=`date +"%A %m/%d/%Y"` …
John Joel
  • 1
  • 2
0
votes
2 answers

Date to Day conversion in Shell (Sun OS)

cur_date=`date +"%m/%d/%Y"` (Output 04/01/2016) cur_day=`date +"%a"` (Output Fri) I wanted to create a new issue from the above commands But I also want cur_day =cur_date +…
John Joel
  • 1
  • 2
0
votes
1 answer

Strangeness using /usr/xpg4/bin/tr and /usr/bin/tr on Solaris 9

I have a file looking like this, "xxxxxx" "yyyyyy" "aaaaaa" "cccccc" "bbbbbb" "eeeeee" "oooooo" "zzzzzz" Wanting to replace each \n in this file I use: tr '\n' ',' < INPUT > OUTPUT Which works fine. The output is to be…
Anders
  • 6,188
  • 4
  • 26
  • 31
0
votes
1 answer

How to configure xemacs to recognize database specified in .sql-mode?

I am running xemacs with a .sql-mode file containing the following: 1 (setq sql-association-alist 2 '( 3 ("XDBST (mis4) " ("XDBST" "xsius" "password")) 4 ("dev " ("DEVTVAL1" "xsi" "password"…
user3446781
0
votes
1 answer

sed: command garbled in SunOS

I am running following sed command to replace something in xml file. sed -e '//{ s;;;}' ${modified_name_file} > ${RESOURCES}/tempfile2.xml This works fine in Linux but fails in Solaris with following error. sed: command…
codingenious
  • 8,385
  • 12
  • 60
  • 90
0
votes
0 answers

pkginfo on SunOS reliable?

I am trying to understand why pkginfo lists newer versions of python on one of our SunOS servers. veeCan@JuneQA:~> python -V Python 2.3.3 Output from pkginfo: veeCan@JuneQA:~> pkginfo -l | grep -i python NAME: Python 2.4.3 PKGINST: …
veeCan
  • 45
  • 1
  • 2
  • 10
0
votes
1 answer

Sed command not working in sun solaris machine

I have an xml file in which I am searching for the below pattern.
Ankur
  • 197
  • 2
  • 17