echo "\userfile=\"$userfile\" "; echo "\userfile_name=\"$userfile_name\" "; echo "\userfile_size=\"$userfile_size\" "; system("/bin/ls -l /tmp/php*"); system("/bin/cp $userfile /tmp/mail.csv"); system("/usr/bin/nkf -e /tmp/mail.csv > /tmp/mail_e.csv"); ?> |
[root@pokemon /tmp]# rpm -ivh mgetty-1.1.14-5.i386.rpm mgetty ################################################## [root@pokemon /tmp]# rpm -ivh mgetty-sendfax-1.1.14-5.i386.rpm mgetty-sendfax ################################################## [root@pokemon /tmp]# [root@pokemon /var/spool]# ls -la total 14 drwxr-xr-x 14 root root 1024 Dec 15 17:13 . drwxr-xr-x 21 root root 1024 Feb 22 2001 .. drwx------ 3 daemon daemon 1024 Jan 7 2000 at drwx------ 2 root root 1024 Jun 12 1998 cron drwxr-xr-x 4 root root 1024 Dec 15 17:13 fax [root@pokemon fax]# ls -la total 4 drwxr-xr-x 4 root root 1024 Dec 15 17:13 . drwxr-xr-x 14 root root 1024 Dec 15 17:13 .. drwxr-xr-x 2 root root 1024 Oct 12 1998 incoming drwxrwxrwt 3 root root 1024 Dec 15 17:13 outgoing [root@pokemon /etc/mgetty+sendfax]# ls -la total 15 drwxr-xr-x 2 root root 1024 Dec 15 17:13 . drwxr-xr-x 26 root root 2048 Dec 15 17:24 .. -rw------- 1 root root 1172 Oct 12 1998 dialin.config -rw-r--r-- 1 root root 85 Oct 12 1998 faxheader -rw------- 1 root root 1439 Oct 12 1998 faxrunq.config -rw------- 1 root root 2593 Oct 12 1998 login.config -rw------- 1 root root 1559 Oct 12 1998 mgetty.config -rw-r--r-- 1 root root 1051 Oct 12 1998 sendfax.config fax.allow(send user) fax.deny(all.all) 記述 [root@pokemon htdocs]# /usr/bin/faxspool 0849XXXXXX pre.gif spooling to /var/spool/fax/outgoing/F000001... spooling pre.gif... pre.gif is format: gif /usr/bin/faxspool: giftoppm: command not found pnmscale: EOF / read error reading magic number ppmtopgm: EOF / read error reading magic number pgmtopbm: EOF / read error reading magic number pbm2g3: input file type unknown /usr/bin/faxspool: error spooling "pre.gif" - aborting! 気持ちを切り替えて、別のtextの変換。 [root@pokemon htdocs]# /usr/bin/faxspool 0849544777 index.txt spooling to /var/spool/fax/outgoing/F000002... spooling index.txt... index.txt is format: ascii GNU Ghostscript 4.03 (1998-5-1) Copyright (C) 1996 Aladdin Enterprises, Menlo Park, CA. All rights reserved. This software comes with NO WARRANTY: see the file COPYING for details. Loading NimbusMonL-Bold font from /usr/share/ghostscript/fonts/n022004l.pfb... 1 852592 541526 1320168 29318 0 done. Printing index.txt Page height = 66. Putting Header lines on top of pages... Fax queued successfully. WARNING: faxrunq hasn't been run in the last 24 hours. Faxes only get sent out when faxrunq runs! Contact Fax administrator. [root@pokemon /var/spool/fax/outgoing/F000002]# ls -la total 30 drwxr-xr-x 2 root root 1024 Dec 16 11:36 . drwxrwxrwt 5 root root 1024 Dec 16 10:50 .. -rw-r--r-- 1 root root 58 Dec 16 10:50 JOB -rw-r--r-- 1 root root 26138 Dec 16 10:50 f1.g3 [root@pokemon oracle]# rpm -q uucp uucp-1.06.1-16 [root@pokemon oracle]# ls -l /dev/ttys0 crw-rw-rw- 1 root tty 3, 48 May 5 1998 /dev/ttys0 [root@pokemon oracle]# ls -l /dev/cua0 crw-rw---- 1 root uucp 5, 64 May 5 1998 /dev/cua0 [root@pokemon oracle]# ls -l /dev/modem ls: /dev/modem: No such file or directory [root@pokemon oracle]# ln -sf /dev/cua1 /dev/modem [root@pokemon oracle]# ls -l /dev/modem lrwxrwxrwx 1 root root 9 Dec 19 13:04 /dev/modem -> /dev/cua1 [root@pokemon oracle]#[root@pokemon oracle]# cu -l /dev/modem Connected. AT OK ATDT0849-54-4777 NO DIALTONE ATDT0849-54-5522 NO DIALTONE ATDP0849-54-4777 NO DIALTONE ATDT544777 NO DIALTONE [root@pokemon oracle]#[root@pokemon oracle]# cu -l /dev/modem Connected. AT OK ATDW BUSY at OK ATDT0849-xx-xxxx 今度はmodemに無事つながりOK、しかし送れない。 -------------------------------------------------- [root@pokemon sbin]# ./faxrunqd Statement unlikely to be reached at ./faxrunqd line 842. (Maybe you meant system() when you said exec()?) ./faxrunqd: no tty lines specified - use '-l tty |
Fri Dec 22 14:48:30 2000: faxrunqd starting, pid=326 RCS: $Id: faxrunqd.in,v 1.27 1998/02/27 15:15:31 gert Exp $ faxrunqd: signal handler: got signal INT, goodbye... -------------------------------------------------- modem statistics for tty 'modem' total faxes sent: 1 total success : 1 -------------------------------------------------- |
email=> create table ename ( email-> email_id varchar(50) PRIMARY KEY, email-> email_name varchar(50), email-> email_date DATE DEFAULT 'today'); NOTICE: CREATE TABLE/PRIMARY KEY will create implicit index 'ename_pkey' for ta ble 'ename' CREATE 同一デ−タをinsrtすると、 ERROR: Cannot insert a duplicate key into a unique index |
tar zxvf pdflib-3_02_tar.gz pdflib-3.02/config/config.guess pdflib-3.02/config/config.sub pdflib-3.02/config/ltconfig pdflib-3.02/config/ltmain.sh pdflib-3.02/config/install-sh pdflib-3.02/util/Makefile.in pdflib-3.02/util/compile_metrics.c [root@redhat6 /tmp/pdfilb-3.02]#./configure --enable-shared-pdflib --with-pnglib=/usr/local creating test/Makefile creating clients/Makefile creating util/Makefile creating bind/c/Makefile _____________________________________________________________ For your convenience, here's a summary of configure's results: Support for shared libraries: yes C++ language binding for PDFlib: no Java language binding for PDFlib: no Perl language binding for PDFlib: no Python language binding for PDFlib: no Tcl language binding for PDFlib: no TIFF image support for PDFlib: yes PNG image support for PDFlib: no Zlib compression support for PDFlib: yes PDFlib license agreement and purchase order can be found in the doc directory. [root@redhat6 pdflib-3.02]#make gcc -o hello hello.o -L../..//pdflib/.libs -lpdf rm -f .libs/image.lo gcc -c -I../../pdflib -g -O2 -DHAVE_LIBTIFF -DHAVE_LIBZ "-DPDF_PLATFORM=\"Linux 2.2.12-32\"" image.c -fPIC -DPIC -o .libs/image.lo gcc -c -I../../pdflib -g -O2 -DHAVE_LIBTIFF -DHAVE_LIBZ "-DPDF_PLATFORM=\"Linux 2.2.12-32\"" image.c -o image.o >/dev/null 2>&1 mv -f .libs/image.lo image.lo gcc -o image image.o -L../..//pdflib/.libs -lpdf rm -f .libs/pdfclock.lo gcc -c -I../../pdflib -g -O2 -DHAVE_LIBTIFF -DHAVE_LIBZ "-DPDF_PLATFORM=\"Linux 2.2.12-32\"" pdfclock.c -fPIC -DPIC -o .libs/pdfclock.lo gcc -c -I../../pdflib -g -O2 -DHAVE_LIBTIFF -DHAVE_LIBZ "-DPDF_PLATFORM=\"Linux 2.2.12-32\"" pdfclock.c -o pdfclock.o >/dev/null 2>&1 mv -f .libs/pdfclock.lo pdfclock.lo gcc -o pdfclock pdfclock.o -L../..//pdflib/.libs -lpdf make[1]: Leaving directory `/tmp/pdflib-3.02/bind/c' [root@redhat6 pdflib-3.02]# make install cd pdflib && make install make[1]: Entering directory `/tmp/pdflib-3.02/pdflib' if test ! -d /usr/local/lib ; then \ mkdir -p /usr/local/lib; \ chmod 755 /usr/local/lib; \ fi if test ! -d /usr/local/include ; then \ mkdir -p /usr/local/include; \ chmod 755 /usr/local/include; \ fi /usr/bin/install -c -m 644 pdflib.h /usr/local/include if test -f .libs/libpdf.lai ; then \ ../libtool --mode=install /usr/bin/install -c -m 644 libpdf.la /usr/local/li b; \ fi /usr/bin/install -c -m 644 .libs/libpdf.so.1.0.0 /usr/local/lib/libpdf.so.1.0.0 (cd /usr/local/lib && rm -f libpdf.so.1 && ln -s libpdf.so.1.0.0 libpdf.so.1) (cd /usr/local/lib && rm -f libpdf.so && ln -s libpdf.so.1.0.0 libpdf.so) /usr/bin/install -c -m 644 .libs/libpdf.lai /usr/local/lib/libpdf.la /usr/bin/install -c -m 644 .libs/libpdf.a /usr/local/lib/libpdf.a ranlib /usr/local/lib/libpdf.a chmod 644 /usr/local/lib/libpdf.a PATH="$PATH:/sbin" ldconfig -n /usr/local/lib ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- make[1]: Leaving directory `/tmp/pdflib-3.02/pdflib' [root@redhat6 pdflib-3.02]# vi /etc/ld.so.conf [root@redhat6 pdflib-3.02]# /sbin/ldconfig root@redhat6 php-3.0.12jp-beta4]# ./configure --enabe-i18n --with-pgsql= checking for Apache module support via DSO through APXS... yes checking for Apache module support via DSO through APACI... no checking whether to use bundled regex library... no checking for gdbm_open in -lgdbm... yes checking preferred dbm library... gdbm chosen checking for gdbm.h... yes checking for mod_charset compatibility option... no checking for fhttpd module support... no checking for IMAP support... no checking for ASPELL support... no checking whether to include GD support... no checking whether to enable t1lib support with GD... no checking whether to include GNU gettext support... no checking whether to include ImageMagick support... no checking for Oracle support... no checking for iODBC support... no checking for OpenLink ODBC support... no checking for Adabas support... no checking for Sybase support... no checking for Sybase-CT support... no checking for MySQL support... no checking for mSQL support... no checking for PostgresSQL support... yes checking for PQcmdTuples... yes checking for IBM DB2 support... no checking for Solid support... no checking for Empress support... no checking for LDAP support... no checking for Cybercash MCK support... no checking for SNMP support... no checking for Velocis support... no checking for Informix support... no checking for InterBase support... no checking for a custom ODBC support... no checking for Hyperwave support... no checking for XML support... no checking whether to include YP support... no checking whether to include zlib support... no checking whether to include pdflib support... yes checking for zlib (needed by pdflib 2.0)... no configure: warning: If configure fails try --with-zlib= |