9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
When I power ON my T4-1, I got a prompt -> where I have to start /SYS and start /SP/console. How can I auto supply these two commands ? (3 Replies)
Discussion started by: z_haseeb
3 Replies
2. Shell Programming and Scripting
I want a script which increments the count when the script runs. Basically I want to send an password reset email notification for an application, the password value should be keep on changing whenever the script is executed for example, first time i execute it should be password1, second time... (2 Replies)
Discussion started by: JAGADESH GN
2 Replies
3. Shell Programming and Scripting
Hi All,
I have a file which has hundred of records with fixed number of fields. In each record there is set of 8 characters which represent the duration of that activity. I want to sum up the duration present in all the records for a report. The problem is the duration changes per record so I... (5 Replies)
Discussion started by: danish0909
5 Replies
4. UNIX for Dummies Questions & Answers
i was able to script:
ftp -n hosname << DONE
user username pwd
put
quite
close
DONE
can i do same as sftp ? i tried, but it keeps asking for pwd. when i typed pwd, and it worked fine. (11 Replies)
Discussion started by: lawsongeek
11 Replies
5. Shell Programming and Scripting
i have two files as
file1:
1
2
3
file2:
a
b
c
and the output should be:
file3:
1~a
2~b
3~c (1 Reply)
Discussion started by: mlpathir
1 Replies
6. Shell Programming and Scripting
Hi,
I have a variable lets say DATA_DATE.
I have to pass some value to this variable in YYYYMMDD format.
lets say today I have passed this variable as :
DATA_DATE=20100107
Then pls help me how to calculate another variable DATA_DATE1 (which is DATA_DATE+1).
The code should work... (3 Replies)
Discussion started by: 46019
3 Replies
7. Shell Programming and Scripting
Hello
Does anyone know how to auto-increment the value of a variable, preferably using awk or sed?
I need to read values from a file and auto-increment those values to use them as line numbers
I'd be doing:
while read line do
# auto-increment
sed -n${line}p file> file1
done... (6 Replies)
Discussion started by: loperam
6 Replies
8. Shell Programming and Scripting
Hi All,
I have created a script...
#!/bin/sh
datafile=ABC2008101601.OUT
indfile=ABCIND20081016.1.OUT
waittime=600
starttime=0
while
do
if
then
echo "Indicator file has arrived."
break
else
sleep 10;
((starttime=$starttime+10))
echo $starttime (2 Replies)
Discussion started by: Amit.Sagpariya
2 Replies
9. Shell Programming and Scripting
hi
I want to echo the variable $i while it auto-increments till 21
I set initially i to 1
any idea how to do that?
thank you (4 Replies)
Discussion started by: melanie_pfefer
4 Replies
NICE(1) BSD General Commands Manual NICE(1)
NAME
nice -- execute a utility at an altered scheduling priority
SYNOPSIS
nice [-n increment] utility [argument ...]
DESCRIPTION
The nice utility runs utility at an altered scheduling priority, by incrementing its ``nice'' value by the specified increment, or a default
value of 10. The lower the nice value of a process, the higher its scheduling priority.
The superuser may specify a negative increment in order to run a utility with a higher scheduling priority.
Some shells may provide a builtin nice command which is similar or identical to this utility. Consult the builtin(1) manual page.
ENVIRONMENT
The PATH environment variable is used to locate the requested utility if the name contains no '/' characters.
EXAMPLES
Execute utility 'date' at priority 5 assuming the priority of the shell is 0:
nice -n 5 date
Execute utility 'date' at priority -19 assuming the priority of the shell is 0 and you are the super-user:
nice -n 16 nice -n -35 date
DIAGNOSTICS
If utility is invoked, the exit status of nice is the exit status of utility.
An exit status of 126 indicates utility was found, but could not be executed. An exit status of 127 indicates utility could not be found.
SEE ALSO
builtin(1), csh(1), idprio(1), rtprio(1), getpriority(2), setpriority(2), renice(8)
COMPATIBILITY
The traditional -increment option has been deprecated but is still supported.
STANDARDS
The nice utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
A nice utility appeared in Version 4 AT&T UNIX.
BSD
June 6, 1993 BSD