11-04-2012
Need help on a Script in Solaris
[Using Solaris 10]
Ok here's the situation, i need to create a script in terminal that checks that the default umask is set to 025. If it is indeed set to 025, the script should echo "Exception: No"
If it is not set to 025, the script should echo "Exception: Yes"
How do i go about doing it? I'm new to this and the closest thing i can get to printing out the umask is cat /etc/default/login | grep UMASK but that isn't enough. I know i can try to use if else to compare it but i can't get it to work. Any help?
Plus i am using bash, full admin permissions(root)
Many thanks.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi everyone,
I am trying to automate one process on Solaris OS.
This is what happens at the moment.
Every night at 19:30 and every hour after that we run a script that checks the status of databases. That script runs and prints if db's are OK at the end it states how many were down.
I am... (3 Replies)
Discussion started by: andrei
3 Replies
2. Shell Programming and Scripting
hi experts,
i have some problem with my solaris 8 v890 server, is :
the server running process called SS7 below is example process :
PID STAT MODE HOST MUX OBJECT
384 ok LX|A USSDGmdn-1a spm/0 daemon
385 ok LX|A USSDGmdn-1a spm/2 ... (0 Replies)
Discussion started by: bucci
0 Replies
3. Solaris
Hi I'd like to add a start up script to run at boot time.I think that pre solaris 10 you'd add it to /etc/init.d. But I'm using Solaris 10 now and it has this SMF config thing which I'm not sure whether I have to add a service to it or not.
Does anyone know how add a script at boot time on... (2 Replies)
Discussion started by: fishman2001
2 Replies
4. Shell Programming and Scripting
Hi,
In the request script I need to read user input and store to variable to use it later in postinstall script.
e.g.
LOGDIR=/app/log
echo "Please type the Log Directory : (current value: $LOGDIR)"
read LOGDIR
When asked, if the user enters a value the parameter is ok and I... (2 Replies)
Discussion started by: potro
2 Replies
5. Shell Programming and Scripting
i am using
SunOS ReportServer 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Blade-2500
and i just wrote a simple script like below:
#!/sbin/sh
df -k
exit 0
when i run it i get response as below
check.sh: not found
please what am i doing wrong (7 Replies)
Discussion started by: tomjones
7 Replies
6. Shell Programming and Scripting
Hello Everyone
I need a bourn script that allow the users to enter any network address from (172.21.2.1 - 172.21.2.24) .
more explanation :
the script should add entries (ip address&hostname) to the hosts file , so i can ping to another computer using the hostname .
the host file will be... (3 Replies)
Discussion started by: Ra@ed
3 Replies
7. Shell Programming and Scripting
Dear All,
I am having the Perl script which is using Sudo and it is having a lot of sub programs.
The main task of script is to create create the unix user account and database accounts.
Previous version of platform was Sun Solaris, and now are moving to HP UX.
I am posting this, to know... (14 Replies)
Discussion started by: yadavricky
14 Replies
8. Solaris
Hi,
I am using solaris 10.Is there any way to execute the script with the scriptname wihtoug using ./scriptname?Also does it varies from shell to shell.I have scripts in bash,ksh,sh shells.
Example:script.sh is the script name.I need to execute the script like this script.sh instead... (4 Replies)
Discussion started by: muraliinfy04
4 Replies
9. Solaris
Hi,
I am having a shell script on Solaris 10 which has a while loop as shown below.
#!/usr/bin/ksh
#
while
do
sleep 60
done
Name of the shell script is coldcentric.sh. I executed script /DATAWAREHOUSE/LOAD/Scripts/coldcentric.sh from a command task in Informatica worklow as... (3 Replies)
Discussion started by: chekusi
3 Replies
LEARN ABOUT XFREE86
suninstall
suninstall(1M) System Administration Commands suninstall(1M)
NAME
suninstall - install the Solaris operating system
SYNOPSIS
suninstall
DESCRIPTION
install-solaris(1M) is now the preferred command for starting and restarting the Solaris Installation program. It should be used instead of
suninstall. suninstall is symbolically linked to install-solaris.
suninstall is a forms-based and graphical subsystem for installing the operating system.
suninstall exists only on the Solaris installation media (CD or DVD) and should only be invoked from there. Refer to the Solaris 10 Instal-
lation Guide: Basic Installations for more details.
suninstall allows installation of the operating system onto any standalone system. suninstall loads the software available on the installa-
tion media. Refer to the Solaris 10 Installation Guide: Basic Installations for disk space requirements.
USAGE
Refer to the Solaris 10 Installation Guide: Basic Installations for more information on the various menus and selections.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcdrom (Solaris instal- |
| |lation media) |
+-----------------------------+-----------------------------+
SEE ALSO
pkginfo(1), install(1M), install-solaris(1M), pkgadd(1M), attributes(5)
Solaris 10 Installation Guide: Basic Installations
NOTES
It is advisable to exit suninstall by means of the exit options in the suninstall menus.
SunOS 5.10 9 Sep 2004 suninstall(1M)