Hi,
I am trying to execute the below shell script: script name(ss1).
ss1 was given permission - 744 before executing.
name: ss1
#ss1
#usage:ss1
ls
who
pwd
:wq
I tried to execute $ss1 (Enter)
Its not executing.... It says that ss1 is not found:
echo $SHELL. The o/put i got is... (5 Replies)
I am trying to run a shell script using the ./<ScriptName> command, but the server returns an error bash: ./Script1.sh: Permission denied
What variable do I need to set to avoid this? (4 Replies)
I need to execute a shell script kept in unix machine from windows. User id, password area available.
For eg.
There's a shell script wich moves all the logs kept in my home directory to a directory named LOGS.
Now i need to get this done through windows; either using a batch file, or java... (4 Replies)
hi
Could some one let me know what is the diffrence in executing a shell script as below
$sh script.sh (this is executed in a subshell)
$./script.sh(this is executed in the current shell)
$script.sh(this is executed in a subshell)
where script.sh is the name of the shell script.
... (1 Reply)
Hello,
I created a sql file to create a Procedure, and it was successfully created.
I created a sql file to execute the procedure, and it did without any errors, but i dont see the data been updated.
The Execute procedure.sql script is:
BEGIN
set serveroutput on size 1000000
execute... (5 Replies)
Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below.
I am on a solaris server btw.
Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose.
... (2 Replies)
Platform : Solaris 10, RHEL 5.4, OEL 6
I've noticed that some of my colleagues execute scripts by typing sh before the script name
sh myscript.shI always execute a script by typing the script name and typing enter provided PATH variable has . (current directory) in it
myscript.sh (and... (1 Reply)
Hi All,
I wanted to know why we use the '-f' option while executing script.
in my case...
abcd.sh -f any_evts 02 2014
abcd = Scriptname
-f = dont know
any_evts = Some file or string
02= month
2014 = year
So in above pleas ehelp to understand here -f and other arguement like... (1 Reply)
Discussion started by: ajju
1 Replies
LEARN ABOUT SUNOS
nice
nice(1) User Commands nice(1)NAME
nice - invoke a command with an altered scheduling priority
SYNOPSIS
/usr/bin/nice [-increment | -n increment] command [argument...]
/usr/xpg4/bin/nice [-increment | -n increment] command [argument...]
csh Builtin
nice [-increment | +increment] [command]
DESCRIPTION
The nice utility invokes command, requesting that it be run with a different system scheduling priority. The priocntl(1) command is a more
general interface to scheduler functions.
The invoking process (generally the user's shell) must be in a scheduling class that supports nice.
If the C shell (see csh(1)) is used, the full path of the command must be specified. Otherwise, the csh built-in version of nice will be
invoked. See csh Builtin below.
/usr/bin/nice
If nice executes commands with arguments, it uses the default shell /usr/bin/sh (see sh(1)).
/usr/xpg4/bin/nice
If nice executes commands with arguments, it uses /usr/xpg4/bin/sh (see ksh(1)).
csh Builtin
nice is also a csh built-in command with behavior different from the utility versions. See csh(1) for description.
OPTIONS
The following options are supported:
-increment | -n increment
increment is a positive or negative decimal integer that has the same effect on the execution of the utility as if the utility had
called the nice() function with the numeric value of the increment option-argument. See nice(2). nice() errors, other than EINVAL, are
ignored. If not specified, an increment of 10 is assumed.
The super-user may run commands with priority higher than normal by using a negative increment such as -10. A negative increment
assigned by an unprivileged user is ignored.
OPERANDS
The following operands are supported:
command The name of a command that is to be invoked. If command names any of the special built-in utilities (see
shell_builtins(1)), the results are undefined.
argument Any string to be supplied as an argument when invoking command.
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of nice: LANG, LC_ALL, LC_CTYPE, LC_MES-
SAGES, PATH, and NLSPATH.
EXIT STATUS
If command is invoked, the exit status of nice will be the exit status of command. Otherwise, nice will exit with one of the following val-
ues:
1-125 An error occurred.
126 command was found but could not be invoked.
127 command could not be found.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
/usr/bin/nice
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|CSI |Enabled |
+-----------------------------+-----------------------------+
/usr/xpg4/bin/nice
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWxcu4 |
+-----------------------------+-----------------------------+
|CSI |Enabled |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO csh(1), ksh(1), nohup(1), priocntl(1), sh(1), shell_builtins(1), nice(2), attributes(5), environ(5), standards(5)SunOS 5.10 23 Jan 2004 nice(1)