Search Results

Search: Posts Made By: kd09714
18,803
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,551
Posted By kd09714
pgrep does not work on all unix flavor.
pgrep does not work on all unix flavor.
15,551
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,551
Posted By kd09714
also "$CHECK = 0" is wrong . should be $CHECK...
also
"$CHECK = 0" is wrong . should be $CHECK -eq 0
15,551
Posted By kd09714
remove else and try
remove else and try
18,803
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,006
Posted By kd09714
can you elaborate the problem faced.
can you elaborate the problem faced.
18,803
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,968
Posted By kd09714
try to use xargs - find . -name '*.dat' |...
try to use xargs -

find . -name '*.dat' | xargs wc -l
2,469
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,406
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,468
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,468
Posted By kd09714
use Y=`date +'%y'` /home/d1kumar> date...
use Y=`date +'%y'`

/home/d1kumar> date +'%y'
10
5,341
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,824
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,824
Posted By kd09714
use this 's/\"//'
use this

's/\"//'
1,322
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,055
Posted By kd09714
Please make your requirement more clear Or paste...
Please make your requirement more clear Or paste the log.
5,704
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,055
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,176
Posted By kd09714
see man page for awk
try to use awk with the file .
ex : awk '{ print $12 }' file_name
5,553
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,550
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,083
Posted By kd09714
use the option : -maxdepth 1 ex : find ....
use the option : -maxdepth 1

ex : find . -maxdepth 1 -mtime +n
1,617
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 01:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy