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

Ignore spaces in Solaris 'find' output

I am trying to remove all empty files that are older than 2 days. Also I am ignoring hidden files, starting with dot. I am doing it with this code: find /u01/ -type f -size 0 -print -mtime +2 | grep -v "/\\." | xargs rm It works fine until there…
erizo
  • 347
  • 1
  • 3
  • 8
0
votes
1 answer

How to show a graph in an email body

This is my HTML file below which draws a graph. When I am opening my HTML file using IE/Firefox/Chrome, I can see my graph properly. I need to send this graph within an email body. When I try to use the below command, I can only see the plain text…
arsenal
  • 23,366
  • 85
  • 225
  • 331
0
votes
2 answers

uuencode doesn't work properly for attaching files with my below command

I am trying to attach one file and send few echo messages in the Body of an email using mailx and uuencode. I have below command which I have added them together, and uuencode doesn't work properly but I get echo message properly in my email. How…
arsenal
  • 23,366
  • 85
  • 225
  • 331
0
votes
3 answers

Attach one html file in an email using shell script

I am sending an email by using below commands by combining all the output and sending in one email. It works fine for me. mailx -s "LIP Data Quality Report for $DATE_YEST_FORMAT1" -r rj@host.com rj@host.com <
arsenal
  • 23,366
  • 85
  • 225
  • 331
0
votes
2 answers

new line in shell script

I have the below command in my shell script to send all the four echo statements in one email { echo "Data Successfully loaded into LIP table" echo "Total Items Purchased: `echo $QUERY1 | awk '{print $1}'`" echo "Total Items MissingorMismatch: `echo…
arsenal
  • 23,366
  • 85
  • 225
  • 331
0
votes
2 answers

UNIX open multiple windows and pass login/password

Straight to the point; I'd like to create a script in UNIX to open two windows at a specific location on the screen, enter in username and password (which would be given by the user as an argument) and then execute another script. I'd like to know…
-1
votes
2 answers

sunos change multiple files name

How can I change multiple files name in Sunos. I want to delete…
Emrahall
  • 47
  • 6
-1
votes
1 answer

UNIX programming

Hi i want to convert UNIX date to normal date (YYYY-MM-DD) 22222,0,0,0,14387 33333,0,0,0,14170 44444,0,0,0,14244 55555,0,0,0,14190 66666,0,0,0,14528 77777,0,0,0,14200 88888,0,0,0,0 99999,0,0,0,0 here 5th column represents UNIX date i want to…
user400480
  • 563
  • 2
  • 5
  • 5
-1
votes
1 answer

move_uploaded_file not working in the environment?

I am pretty sure that all my function are working since I test it on my local computer. But for some reason, it doesn't work on prod server. Is there any other way to upload the image? or if its possible I can test it on prod server? PS: I have…
SharkIng
  • 178
  • 1
  • 13
-1
votes
2 answers

date comparison in unix and identify the earlier one

I have two dates to compare and find out the earlier one. ( using SunOS 5.10) date1='01May2014' date2='03Apr2014' I need to determine the earlier date.
pradeep
  • 7
  • 6
-1
votes
2 answers

error: expected `,' or `...' before '.' token

It compiles on an intel/linux 64bit machine just fine.. But I need to have this compile and work to test for Big/Little Endian on a SunOS machine.. But its not compiling.. Here is the Error: util.h:48: error: expected `,' or `...' before '.'…
John
  • 55
  • 1
  • 10
-1
votes
2 answers

Getting the Java Version I want in a SunOS account

I have an account on a Unix server. I can't get it to point to the version of Java I want when I am in BASH. The version of Unix is: SunOS 5.10 Generic January 2005 This is what I have in my…
Steve
  • 3,127
  • 14
  • 56
  • 96
-2
votes
1 answer

Shell Scripting -awk option help required

The script should read each file in the path and replace the string in each single row.How to create temp file and mv replace while i am iterating 10 diff input files name in the same path Pls advice SunOS 5.10 FILES=/export/home/*.txt for f in…
Sen
  • 7
  • 2
-2
votes
2 answers

How do I list files between two time stamps in a certain directory? (SunOS)

i.e. List any files between 2014-01-25 1300 - 2014-01-25 2000 in Cheers
user3236169
  • 145
  • 1
  • 3
  • 13
-3
votes
1 answer

rsync command on target server is located in different directory than on source server. How to use rsync?

I want to copy files from one server (server A) to another (server B) using rsync (yes, only rsync). When using rsync on server A it returns: bash: /usr/local/bin/rsync: No such file or directory Typing in rsync on server A and server B both show…
1 2 3
12
13