Net-Starnet-DataAccounting

 view release on metacpan or  search on metacpan

bin/str  view on Meta::CPAN

=head1 RECOMMENDED INSTALLATION FOR PERMANENT EXECUTION (under Unix variants)

Head over to http://cr.yp.to/daemontools.html and install them.

=head2 The Quick Way

    mkdir -p /etc/svscan/str/log
    mkdir -p /var/log/str
    groupadd nofiles
    groupadd -g nofiles sdaclnt
    chown sdaclnt:nofiles /var/log/str
    cp str /etc/svscan/str
    cd /etc/svscan/str
    echo "username\npassword\n" > logindetails

Create run as per:

    #!/bin/sh
    exec /usr/local/bin/setuidgid sdaclnt ./str < ./logindetails 2>&1

and log/run

bin/str  view on Meta::CPAN

    /etc/svscan/str/
      |- log/
      |  '- run
      |- logindetails
      |- run
      '- str

Create a group 'nofiles' if you haven't already got one (see
groupadd(8)).  Create a user 'sdaclnt' in that group (useradd(8)).

Create a directory /var/log/str and chown sdaclnt:nofiles it.

Ensure str is in /etc/svscan/str and then link the
str directory in to /service.

Then, if you want to logout, do 'svc -d /service/str' To
login after that do 'svc -u /service/str'.  To give it a kick
(log you off, log you back in), do 'svc -t /service/str'.


Basically, this all means that you get a log of what str does



( run in 0.663 second using v1.01-cache-2.11-cpan-71847e10f99 )