my $q = CGI->new; if ( $q->param('btn_name') ) { system('sh myscript'); }