Tugriceri Web Notes

Shell

Socket proxy with ssh

by on Dec.26, 2010, under Shell, SSH

ssh -D 7200 root@hostname

Comments Off on Socket proxy with ssh more...

Directory sync with rsync over ssh

by on May.29, 2009, under Linux, Shell

<a name="linuxsvrhack-CHP-3-SECT-2">root@emre:~# <b class="emphasis-bold">rsync -ave ssh server:/opt/dir /opt</b></a>

Comments Off on Directory sync with rsync over ssh more...

Transponder Lists for Kaffeine

by on May.20, 2009, under DVB, Linux, Shell

There is a link that include transponder lists.
http://www.fastsatfinder.com/transponders.html

This script will convert fastsatfinder’s transponder lists to kaffeine format.

I used 0130.ini file for Hotbird.

cat 0130.ini | awk -F “=” ‘{print $2}’ > out

for aa in `cat out`
do
echo $aa |sed ‘s/,34/,3\/4/; s/,56/,5\/6/; s/,23/,2\/3/’ | awk -F “,” ‘{print “S”” “$1″000 “$2” “$3″000 “$4″”}’ >> Hotbird-13.0E
done

Comments Off on Transponder Lists for Kaffeine more...

How to test wbinfo_group.pl via command line

by on Apr.10, 2009, under Shell, Squid

[root@proxy squid]# echo “emre Standard_Access” | /usr/lib/squid/wbinfo_group.pl -d

Debugging mode ON.
Got emre Standard_Access from squid
Standard Access
User:  -emre-
Group: -Standard Access-
SID:   -S-1-5-21-2095213794-1237320697-2031155483-2732-
GID:   -16777226-
Sending OK to squid
OK

Comments Off on How to test wbinfo_group.pl via command line : more...

remove multi space with sed

by on Apr.10, 2009, under Shell

cat ISALOG_20090302_WEB_000.w3c | sed ‘s/\s/ /g

Comments Off on remove multi space with sed more...

run command via ssh (remote)

by on Apr.08, 2009, under Linux, Security, Shell

cat ls_keykur.sh | ssh root@10.94.12.3
ssh root@10.94.12.3 “date”

Comments Off on run command via ssh (remote) more...

Citrix Netscaler backup script

by on Apr.14, 2008, under Shell

Netscaler config lerini yedeklemek için yazdığım bir script belki birilerinin daha ihtiyacı vardır.

shell # ./ceknsconfig.ex `date +%y%m%d-%N`

şeklinde bir kullanımı var. Afiyet olsn.

Emre

http://www.tugriceri.com/getfile/ceknsconfig.ex

Comments Off on Citrix Netscaler backup script more...

File Replace with sed

by on Dec.24, 2007, under Shell

       -i[SUFFIX], –in-place[=SUFFIX]

              edit files in place (makes backup if extension supplied)

[root@etugriceri sil2]# sed -i ‘s/LAND/AIR/i’ *

Powered by ScribeFire.

Comments Off on File Replace with sed more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...