[Perl] Porque no corre

=?iso-8859-1?Q?Benjamin_Huitr=F3n_Solar?= benjamin@gemtel.com.mx
Fri, 4 Jan 2002 18:17:55 -0600


Hola estoy haciendo un archivo el cual me identifique que usuario lo
ejecuto, ya que este progarma lo pueden correr varias personas pero solo
como root, haciendolo en el shell si sale, pero ya en perl nop, ejecutand=
o
eso desde el shell si me dice el user, al parecer el problema es al quere=
r
pasar la variable $Terminal  y en el shell no la toma, espero me puedan
ayudar..


$Terminal=3D`tty | cut -c6-11`;
$UserShell=3D`ps -Af | grep -v root | cut -c1-8| grep $Terminal `;
printf "Hola tu terminal es $Terminal y tu eres $UserShell";


Ejecutandolo desde el shell pongo lo pongo asi:
ps -Af | grep pts/9 | grep -v root  | cut -c1-8

y aqui no ahi ningun problema,
estoy bajo SunOS 5.8


                              ,,,,,,
                            ( o  o )
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DoOO=3D=3D(_)=3D=3DOOo=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
         B e n j a m i n - H u i t r =F3 n - S o l a r
                   G e m t e l - I n t e r n e t
                  Tel: (01222) 266 - 60 - 65
                          # ICQ 58196854
      Web Site: http://gemtel.com.mx/~benjamin/
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

"Mensaje enviado intencionalmente sin acentos para facilitar su lectura e=
n
cualquier programa de correo=AE"
----- Original Message -----
From: "Allan Baker Ortegon" <00527261@academ01.cem.itesm.mx>
To: "Lorena Garcia" <mglorenna@hotmail.com>; "lista perl"
<perl@tlali.iztacala.unam.mx>
Sent: Wednesday, January 02, 2002 1:13 PM
Subject: RE: RV: [Perl] DBD::PG para Postgres interface for perl 5- Por
favor Ayuda!!!!


>
>
> -- Original Message --
>
> >Hola a todos!!
> >Gracias a los que contestaron
> >sigo teniendo problemas, creo que me falto decir que ya habia probado =
los
> >comandos
> >make
> >make test
> >make install
> >
> >el error que me aparece al ejecutar cualquiera de ellos es el siguient=
e
> >
> >linux:/usr/src/pgsql/DBD-Pg # make
>
>cc -c -I/usr/src/pgsql/postgresql-7.1.3/src/include -I/usr/lib/perl5/sit=
e_p
erl/5.6.0/i586-linux/auto/DBI
>
>-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OF=
FSE
T_BITS=3D64
>
>-O2 -pipe     -DVERSION=3D\"0.95\" -DXS_VERSION=3D\"0.95\" -fpic -I/usr/=
lib/per
l5/5.6.0/i586-linux/CORE
> > Pg.c
> >In file included from Pg.xs:13:
> >Pg.h:17: libpq-fe.h: No such file or directory
> >In file included from Pg.xs:13:
> >Pg.h:41: dbdimp.h: No such file or directory
> >Pg.xs: In function `XS_DBD__Pg__db_commit':
> >Pg.xs:90: dereferencing pointer to incomplete type
> >Pg.xs: In function `XS_DBD__Pg__db_rollback':
> >Pg.xs:101: dereferencing pointer to incomplete type
> >Pg.xs: In function `XS_DBD__Pg__db_disconnect':
> >Pg.xs:112: dereferencing pointer to incomplete type
> >Pg.xs:116: dereferencing pointer to incomplete type
> >Pg.xs:117: dereferencing pointer to incomplete type
> >Pg.xs:118: dereferencing pointer to incomplete type
> >Pg.xs:122: dereferencing pointer to incomplete type
> >Pg.xs:122: dereferencing pointer to incomplete type
> >Pg.xs:123: dereferencing pointer to incomplete type
> >Pg.xs:125: dereferencing pointer to incomplete type
> >Pg.xs: In function `XS_DBD__Pg__db_DESTROY':
> >Pg.xs:165: dereferencing pointer to incomplete type
> >Pg.xs:166: dereferencing pointer to incomplete type
> >Pg.xs:172: dereferencing pointer to incomplete type
> >Pg.xs:173: dereferencing pointer to incomplete type
> >Pg.xs:174: dereferencing pointer to incomplete type
> >Pg.xs:176: dereferencing pointer to incomplete type
> >Pg.xs:177: dereferencing pointer to incomplete type
> >Pg.xs:177: dereferencing pointer to incomplete type
> >Pg.xs:177: dereferencing pointer to incomplete type
> >Pg.xs:179: dereferencing pointer to incomplete type
> >Pg.xs:180: dereferencing pointer to incomplete type
> >Pg.xs:190: dereferencing pointer to incomplete type
> >Pg.xs: In function `XS_DBD__Pg__st__prepare':
> >Pg.xs:356: dereferencing pointer to incomplete type
> >Pg.xs: In function `XS_DBD__Pg__st_execute':
> >Pg.xs:447: dereferencing pointer to incomplete type
> >Pg.xs:448: dereferencing pointer to incomplete type
> >Pg.xs:449: dereferencing pointer to incomplete type
> >Pg.xs: In function `XS_DBD__Pg__st_finish':
> >Pg.xs:508: dereferencing pointer to incomplete type
> >Pg.xs:509: dereferencing pointer to incomplete type
> >Pg.xs:515: dereferencing pointer to incomplete type
> >Pg.xs: In function `XS_DBD__Pg__st_DESTROY':
> >Pg.xs:576: dereferencing pointer to incomplete type
> >Pg.xs:577: dereferencing pointer to incomplete type
> >Pg.xs:582: dereferencing pointer to incomplete type
> >Pg.xs:583: dereferencing pointer to incomplete type
> >Pg.xs:583: dereferencing pointer to incomplete type
> >Pg.xs:583: dereferencing pointer to incomplete type
> >Pg.xs:585: dereferencing pointer to incomplete type
> >Pg.xs: In function `boot_DBD__Pg':
> >Pg.xs:33: sizeof applied to an incomplete type
> >Pg.xs:34: sizeof applied to an incomplete type
> >Pg.xs:35: sizeof applied to an incomplete type
> >make: *** [Pg.o] Error 1
> >linux:/usr/src/pgsql/DBD-Pg #
> >
>
> Hola!
>
> Ya leiste el procedimiento que viene en el archivo del m=F3dulo? A lo
> mejor requiere que tengas algunas librer=EDas o algo parecido instalado.
>
> SAL-U-DOS
>
>
>
> Allan Baker Ortegon, 527261,  ISC 9o Semestre y  Can. a Graduarse
> Mi pagina: http://linux.cem.itesm.mx/~alanyuu/
> Mis actividades del dia: http://linux.cem.itesm.mx/~alanyuu/activelog.h=
tml
> FRASE DEL MES:  Using propietary software makes you liable to third-par=
ty
>
> auditing: GNU software makes you liable to freedom of choice and use
>
>
>
>
> _______________________________________________
> Perl mailing list
> Perl@tlali.iztacala.unam.mx
> http://tlali.iztacala.unam.mx/mailman/listinfo/perl
>