Kırmızı Şapka

RedHat, Uygulama Kurulumu, Ayarlar vs.

Perşembe, Kasım 12, 2009

nohup ve disown



$ gv report.pdf &
[1] 9916
$ jobs
[1] + running gv report.pdf
$ disown %1
$ jobs
$ exit
# Shell exits, leaving gv running



nohup ise programi baslatirken kullanici oturumundan bagimsiz process yaratmak icin.

free ile RAM boyutunu gorebilirim.

Etiketler:

Çarşamba, Kasım 11, 2009

crontab -e

SHELL=/bin/bash
HOME=/home/vu/MAIN/
*/15 * * * * /home/vu/MAIN/report.sh

report.sh

#!/bin/bash

LIST="Renaissance Aloft Courtyard Sheraton Holiday Hilton Hyatt Westin"

REPORT=REPORTS/REPORT.dat

echo "VVVVVVVVVVV" >> $REPORT
date >> $REPORT

rm reviewLinks.txt ; cat links.txt | grep /ShowUserReviews- >>reviewLinks.txt
rm reviewLinks-uniq.txt; sed -e 's/#CHECK_RATES_CONT//' -e 's/#REVIEWS//' reviewLinks.txt |sort | uniq >> reviewLinks-uniq.txt
rm links-uniq.txt; sed -e 's/#.*$//' links.txt | sort |uniq >>links-uniq.txt
rm geoCodes.txt; sed -n 's/.*-\(g[0-9]*\)-.*/\1/p' links.txt | sort | uniq >> geoCodes.txt
rm reviewGeoCodes.txt; sed -n 's/.*-\(g[0-9]*\)-.*/\1/p' reviewLinks.txt | sort | uniq >> reviewGeoCodes.txt
echo "-----------" >> $REPORT
wc -l links.txt >> $REPORT
wc -l links-uniq.txt >> $REPORT
wc -l geoCodes.txt >> $REPORT
wc -l reviewLinks.txt >> $REPORT
wc -l reviewLinks-uniq.txt>> $REPORT
wc -l reviewGeoCodes.txt >> $REPORT
echo "-----------" >> $REPORT

for HOTEL in $LIST
do
FILE="REPORTS/${HOTEL}Reviews.txt"
rm $FILE; grep $HOTEL reviewLinks-uniq.txt >> $FILE
#echo $HOTEL
wc -l $FILE >> $REPORT
done

Etiketler:

Salı, Kasım 03, 2009

Eclipse plugin for MAven

Bunu kurduktan sonra eclipse de new->project->maven->checkout maven project from SCM diyorsun. Karsina bir pencere cikacak orada SCM icin svn sev sonra da projenin adresini gir. Bitti.

Etiketler: