#!/usr/bin/perl $| = 1; use warnings; use CGI; use IPC::Open2; $q = CGI->new; print( "Content-type: text/plain\n\n"); open(STDERR, ">&STDOUT"); if( defined( $q->param('r') ) && defined( $q->param('n') ) ) { unless( system( '/usr/sbin/piny-suid', $ENV{'REMOTE_USER'}, 'addaccess', scalar( $q->param('r') ), scalar( $q->param('n') ) ) == 0 ) { die( 'Addaccess was unsuccessful.' ); }; } else { print 'Missing parameters.'; };