my $_suffix = `rsh fs3cm -l ccmroot "/home/ccm_root/bin/UpdateSettingsNew.pl -r 62 -d $dbname"`; if ($_suffix =~ /(.+\s+.+\s+.+)/) # Untaint the scalar { $suffix = $1; # Pass the value to this scalar if successfully untainted } else # Otherwise exit the program with error message { $message = 'The remote shell command produced an error in this script.'; &display_page($message); # Create an HTML-page to display the message exit; } $message = "Database added to $file"; &display_page($message); exit;