On Fri, Jun 29, 2007 at 10:17:08AM +0700, A r y a S e t a wrote:

> Tentang peletakan script nya letakkan dmn ya ?
> 
> soale saya coba create resize_file.sh
> isinya :
> 
> #!/bin/sh
> #
> PATH=/usr/bin:/usr/local/bin:/usr/local/sbin
> DIR="/home/byte/sekar/"
> fileschanged $DIR | while read file; do
>    if 'echo "$file"|grep -qi ".*.jpg$"'
>    then
>      convert -resize 50% "$file" "$file"
>    fi
> done
> exit 0
> 
> trus saya coba jalankan manual : ./resize_script.sh
> 
> trus saya kopi image ke folder sekar tersebut, hasilnya nihil, alias 
> image nya ndak ke resize :(
> 
> Salah dimananya ya?

Tool fileschanged-nya sudah diinstal ?
Di manualnya ada petunjuk sederhana cara mengaktifkan.
Script tsb dijalankan spt ini: resize_file.sh &

OK, kebetulan ada arsio berkas instalasi fileschanged yg saya install
di mesin slackware 10.2. Copy paste ke milis:

1. Install paket fam, cari di linuxpackages.net atau untuk distro
   lain cari di http://oss.sgi.com/projects/fam/
   FAM ini perlu dukungan inetd dan portmapper, jadi aktifkan dulu
   service portmap tapi ubah dulu sgi_fam dengan famd di /etc/rpc
   setelah itu aktifkan servicenya: /etc/rc.d/rc.portmap start
   Kemudian aktifkan inetd: /etc/rc.d/rc.inetd start
2. Install gettext-1.05.tar.gz
   http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/gettext-1.05.tar.gz
3. Install help2man
   ftp://ftp.gnu.org/gnu/help2man/help2man-1.36.3.tar.gz
4. Install fileschanged, cari di http://fileschanged.sourceforge.net/

COnfigure dan make dst sesuai petunjuk. Oya, pas install fileschaned
muncul warning perlu makeinfo atau TexInfo, saya lewatkan saja, dan
ternyata sampai make install tdk bermasalah.

$ fileschanged --help
Usage: fileschanged [OPTION...] [FILE]...
Monitors FILEs for alterations.  Display the filenames of FILEs that were
created, changed, deleted, started execution or finished executing.

  -s, --show=EVENT[,...]     Display created, changed, deleted, executing, or
                             executed files (Default is "created,changed")
  -a, --show-all             Display all file events and the associated action
  -f, --files-to-monitor     (Default) Monitor the FILEs on the command line
  -l, --filelist=FILE        Monitor the list of filenames inside FILE
  -L, --dereference          Don't monitor symlinks, monitor what's pointed to
  -r, --recursive            Monitor subdirectories of directories
  -t, --timeout=N            Delay showing changed files for N seconds (Def=2)
  -p, --display-action       Display action when showing altered files
  -x, --exec=PROG            Run PROG when file is altered (PROG action
                             filename)
  -?, --help                 Give this help list
      --usage                Give a short usage message
  -V, --version              Print program version

FILEs must exist when monitoring begins, or they will not be monitored.

Report bugs to <[EMAIL PROTECTED]>.

-- 

Terimakasih sebelumnya dan sesudahnya.

Salam,

~~ Arief Yudhawarman ~~



-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis

Kirim email ke