Santiago Vila dijo: > Busca en google por "libfaketime". Jol�n, no hay nada como buscar bien :-) Yo venga a poner cadenas, pero ninguna era esa :-)
En fin, que muchas gracias, era exactamente lo que necesitaba. Adem�s es facil�simo de usar: /************************************************************************/ /* Copyright 1999, Ondrejicka Stefan <[EMAIL PROTECTED]> */ /* */ /* http://www.idata.sk/~ondrej/sw/fake_time.c */ /* */ /* This is source for replacement of time funcion, which enables you */ /* to travel in time. It is usable for testing or it should help */ /* if you have any program which expires in any time period and uses */ /* shared libraries. I wrote this, because I want to get my old */ /* expired netscape to work for me. */ /* */ /* Compilation : */ /* gcc -fPIC -g -c fake_time.c */ /* gcc -shared -W,-soname,libfaketime.so -o libfaketime.so fake_time.o */ /* */ /* Usage: */ /* set library libfaketime.so to load before any other : */ /* export LD_PRELOAD=`pwd`/libfaketime.so */ /* then set env variable FAKE_TIME_DIFF to amount of seconds to */ /* travel in time (positive goes in past , nogative to future) */ /* export FAKE_TIME_DIFF=-1000000 */ /* than you should see with date command where are you in time :-) */ /************************************************************************/ Al loro: [EMAIL PROTECTED]>date mar abr 2 15:07:41 CEST 2002 [EMAIL PROTECTED]>export LD_PRELOAD=`pwd`/libfaketime.so [EMAIL PROTECTED]>export FAKE_TIME_DIFF=-259200 [EMAIL PROTECTED]>date vie abr 5 15:09:37 CEST 2002 3 d�as en el futuro, tal cual! > En cualquier caso, se podr�a coger el c�digo fuente de fakeroot, que > hace cosas parecidas. Me sobre-estimas :-) Pero me lo mirar�. -- .''`. Same shit, different day... : :' : `. `' Proudly running Debian GNU/Linux Sid (Kernel 2.4.18) `- www.amayita.com www.malapecora.com www.chicasduras.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

