Search Results

Search: Posts Made By: kanang
1,678
Posted By kanang
perhaps you can play around who or w commands.
perhaps you can play around who or w commands.
13,548
Posted By kanang
mistakenly issued crontab -r
HPUX 11 (32bit)

An ordinary user (not root) had mistakenly issued "crontab -r" which removed the crontab file corresponds to his user_id. (well, on our keyboard R is next E, where "crontab -e" is...
2,813
Posted By kanang
there is more suitable forum which can help you...
there is more suitable forum which can help you much better. i mean metalink. pls go to the unix & rdbms installation forum.

metalink.oracle.com (http://metalink.oracle.com)

:)
8,376
Posted By kanang
i would apply different logic than yours: ...
i would apply different logic than yours:
#!/usr/bin/ksh
for i in `ls -a`
do
FILESIZE=`ls -l $i|awk '{print $5}'`
if [ $FILESIZE -eq 0 ]
then
/usr/bin/rm $i
fi
done


this...
3,008
Posted By kanang
Re: run script
try this:

SQL> @/path/of/scripts/scriptname

this syntax works in oracle.

btw, this is more SQL-related than UNIX.
2,099
Posted By kanang
hi mark, to read users input/selection use...
hi mark,

to read users input/selection use the read variable_name command. read will cause the shell to wait until the user hit ENTER before going to the next line of command. e.g.

# script...
2,302
Posted By kanang
dear paul@saccom, 1. since you have a...
dear paul@saccom,

1. since you have a pentium machine, the best for you is LINUX. You may try Redhat or SuSe. They are available for free download. the download sites for LINUX is numerous.

2....
5,684
Posted By kanang
yuh yuh... the old unix systems (before X...
yuh yuh... the old unix systems (before X windows) were character based displayed on a monochrome monitor. everything needs keystroke. :)

despite that fact, our guru was able to develope a...
9,962
Posted By kanang
prodz & others (including myself), put them...
prodz & others (including myself),

put them this way. every branded unix system is likely to be dependant on the hardware supplied together with the os. for example ibm aix runs best only on ibm...
1,631
Posted By kanang
i suggest that you getany ibm compatible system,...
i suggest that you getany ibm compatible system, just like your windows-based system. then install linux on it. well, linux is create for unix to run on pc...:)
1,886
Posted By kanang
Re: function
imho, should be written as:

ParseRowcount(){
...
}

note the inclusion of bracket and omission of "function" word.
2,088
Posted By kanang
"if $dir isn't a valid directory" we say if...
"if $dir isn't a valid directory" we say

if [ ! -d $dir ]
then
...

fi
3,913
Posted By kanang
Re: Numbering!
korn shell is compatible across the unix families. make sure you run the "typeset" command in the korn shell by issuing "ksh" command at command prompt.

another option, you can put this line at...
3,913
Posted By kanang
Re: Numbering!
in korn shell, there is a built in utility call typeset for force the leading zero. e.g. this script

#!/bin/ksh
typeset -Z3 var=1
while [ $var -lt 1000 ]
do
echo ${var}
var=`expr $var + 1`...
14,974
Posted By kanang
Re: ls s*
the syntax "ls s*" looks alright, and i think it is recognised by all shells across unix families. the unexpected output may be due to the existence of subdirectory whose name begins with an "s"...
8,674
Posted By kanang
shell script / ls
ls -l will list details including time of last modification. for most unix systems the date (month & day) column will display the year if the file is last modified more than 6 months ago. see the man...
1,425
Posted By kanang
use == operator instead of = use single qoute...
use == operator instead of =
use single qoute (') instead of reverse qoute (`)

awk '{$4=="USA"||$4=="USSR" {print $0} details > newdetails
5,468
Posted By kanang
i believe other command does this job better....
i believe other command does this job better. anyway, my spontaneous suggestion is:

sed -e '$ G' -e '$ s/$/new text line/' TheTextFile > NewTextFile
2,171
Posted By kanang
find command
try the command line the other way round:

find / -user rmoore -print 2> error.txt > big.lst &
3,346
Posted By kanang
hi krishna, thanks for your reply. it works...
hi krishna,

thanks for your reply. it works that way.
3,346
Posted By kanang
divert output
i want to run a ksh script 'myscript' at the background and direct the system to return any error msg to /tmp/myscript.err and the output of 'myscript' to /tmp/myscript.out
how do i do that at the...
Showing results 1 to 21 of 21

 
All times are GMT -4. The time now is 07:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy