Need help on a Script in Solaris


 
Thread Tools Search this Thread
Operating Systems Solaris Need help on a Script in Solaris
# 1  
Old 11-04-2012
Error 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.
# 2  
Old 11-04-2012
I'm sorry. I am not allowed to assist with homework.

Please read the rules
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Script on Solaris spawning 2 processes for one shell script execution

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

2. Solaris

Need to execute the script with script name wihtout using ./scriptname in Solaris 10

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

3. Shell Programming and Scripting

Perl Script on Solaris and HP UX

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

4. Shell Programming and Scripting

Bourn script on solaris 9

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

5. Shell Programming and Scripting

simple script in solaris

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

Solaris request script

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

7. Solaris

boot up script in solaris 10

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

8. Shell Programming and Scripting

[Help] startup script on solaris 8

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

9. Shell Programming and Scripting

scheduling script to run another script on Solaris

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
Login or Register to Ask a Question