Search Results

Search: Posts Made By: kd09714
18,919
Posted By kd09714
i am using AIX but this code should work on every...
i am using AIX but this code should work on every unix box. check to see if youe ftp command is working without redirecting it to logfile and then redirect it to log.
15,595
Posted By kd09714
pgrep does not work on all unix flavor.
pgrep does not work on all unix flavor.
15,595
Posted By kd09714
check this #!/bin/sh CHECK='ps -aux | grep...
check this

#!/bin/sh
CHECK='ps -aux | grep start.jar | grep -v grep | wc -l'
if [ $CHECK -eq 0 ]
then
/usr/local/jre-1.7.0/bin/java - jar start.jar &
fi
15,595
Posted By kd09714
also "$CHECK = 0" is wrong . should be $CHECK...
also
"$CHECK = 0" is wrong . should be $CHECK -eq 0
15,595
Posted By kd09714
remove else and try
remove else and try
18,919
Posted By kd09714
you get limited info redirected in log when you...
you get limited info redirected in log when you use -d option. i am getting logs for below code -

ftp -dnv $SAMS_FTP_HOST << EOF_FTP |tee -a ${patch_holding}/ftplog
user $ftplogin $PASS
...
1,011
Posted By kd09714
can you elaborate the problem faced.
can you elaborate the problem faced.
18,919
Posted By kd09714
did you try this - ftp -d -n -v $Remote_Host <<...
did you try this -
ftp -d -n -v $Remote_Host << EOD | tee -a $Ftp_LOG;
25,997
Posted By kd09714
try to use xargs - find . -name '*.dat' |...
try to use xargs -

find . -name '*.dat' | xargs wc -l
2,474
Posted By kd09714
Complex If statement
can anyone please explain my below statement, i am confused.

if [ "$filetype" = "perl" ] || [ "$filetype" = "NULL" ] \
[ "$filetype" = "csh" ] || [ "$filetype" = "ksh" ] \
...
2,426
Posted By kd09714
ctrl - c will actually give you the terminal back...
ctrl - c will actually give you the terminal back killing all the processes running under its ownership. then run the process in nohup mode -

ex -

>>nohup abc.sh &

above command will give...
3,488
Posted By kd09714
/home/d1kumar> date +'%d' 07 /home/d1kumar>...
/home/d1kumar> date +'%d'
07
/home/d1kumar> date +'%y'
10
/home/d1kumar> date +'%m'
07
/home/d1kumar>


I believe this command is doing all you want. If not - check the help ( man date ) or...
3,488
Posted By kd09714
use Y=`date +'%y'` /home/d1kumar> date...
use Y=`date +'%y'`

/home/d1kumar> date +'%y'
10
5,355
Posted By kd09714
ptree process_id ---------- Post updated at...
ptree process_id

---------- Post updated at 07:01 PM ---------- Previous update was at 07:00 PM ----------

upper process in the heirarchy is parent of lower...
2,840
Posted By kd09714
>cat abc "4","0x23a3" "5","0x4234" "11","" ...
>cat abc
"4","0x23a3"
"5","0x4234"
"11",""
"20",""
"11132","0x6456"

>sed -e 's/0x//g' -e 's/""/999999/' -e 's/\"//g' abc
4,23a3
5,4234
11,999999
20,999999
11132,6456
2,840
Posted By kd09714
use this 's/\"//'
use this

's/\"//'
1,327
Posted By kd09714
ls -l | awk '{ print $2,$3,$4,$5,$6,$7,$8,$9 }'
ls -l | awk '{ print $2,$3,$4,$5,$6,$7,$8,$9 }'
1,060
Posted By kd09714
Please make your requirement more clear Or paste...
Please make your requirement more clear Or paste the log.
5,762
Posted By kd09714
why don't you first grep for 09:00 and make sure...
why don't you first grep for 09:00 and make sure the log is written for 09:00 and if grep succeeds, you proceed with sed... in other case you can increase/decrease the time by 01 min or so.
1,060
Posted By kd09714
first move the file and second time use copy...
first move the file and second time use copy commnad.

---------- Post updated at 04:11 PM ---------- Previous update was at 04:08 PM ----------

Do this:

mv /directory1/report...
10,218
Posted By kd09714
see man page for awk
try to use awk with the file .
ex : awk '{ print $12 }' file_name
5,558
Posted By kd09714
for file in `find /home/project/ -type f` do ...
for file in `find /home/project/ -type f`
do
rm -f $file
done
19,596
Posted By kd09714
>str="/u01/Sybase/data/master.dbf" >echo $str ...
>str="/u01/Sybase/data/master.dbf"
>echo $str
/u01/Sybase/data/master.dbf
>basename $str
master.dbf
8,097
Posted By kd09714
use the option : -maxdepth 1 ex : find ....
use the option : -maxdepth 1

ex : find . -maxdepth 1 -mtime +n
1,621
Posted By kd09714
try this also...
awk -F"/" '{ print $6 }' test_file | sed 's/-/./g' | awk -F"." '{ print $7 }' | sort |uniq



20061116P1
20090822P8
20090823P1
20090824P8
20090825P1
20321116P1
Showing results 1 to 25 of 26

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