On Thu, Apr 13, 2000 at 02:48:39PM +0000, Sveinbjorn Thordarson wrote: > Hi there people > > Sorry to bother you with this, but I'm somewhat inexperienced in using Perl > and there are two things that I want to be able to do but lack the knowledge > to perform. > > 1) How do I make a Perl script execute itself regularly on a UNIX > server?...say if I wanted to have a script that sent me updates to a server > log via email regularly? How do I make the script execute itself every few > hours or something like that? cron. `man crontab` to find out how to set up a cron job that will run at specified times. Your crontab entry might look something like: * 0,4,8,12,16,20 * * * perl /path/to/script.pl for execution every four hours starting at midnight. > 2) If I need to know the IP number of a visitor to my site, what do I do? > Say I wanted to have a user account and use cookies? Any hints? The CGI module provides methods that make it easy to set and get cookies. It also provides the remote_host() method, which returns the IP name or number for the remote user. Ronald # ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org