-
-
Save gdemir/661773 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# hook : inoticoming --logfile t.log --pid-file t.pid /tmp/t --suffix .txt --stderr-to-log /tmp/t.sh {} \; | |
file=/tmp/t/$@ | |
mb=$(cat $file | wc -c); | |
min_size=5 | |
if [ -e $file ];then | |
echo >&2 "$@ dosyası daha önceden vardı, birşey yapmadım" | |
exit 1 | |
fi | |
if [ $mb -lt $min_size ];then | |
echo >&2 "$@ dosyası mb : $mb küçük birşey yapmıyorum." | |
else | |
for f in $@; do | |
[ -f $f ] || continue | |
gs -sOutputFile=$f.new \ | |
-sDEVICE=pdfwrite \ | |
-dCompatibilityLevel=1.4 $f </dev/null && mv $f.new $f | |
done | |
echo >&2 "$@->$mb dönüştürdüm." | |
fi |
deneme amaçlı koydum hocam, belki inceleyenin pdf
i yoktur diye :-)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
araya
rails.pdf
karışmış :-) gistpaste ile dizini gönderdin sanıyorum