Example: lr.get_attrib_string

The following example retrieves the host name as a string, checks its validity, and sends it to the output.

string host=lr.get_attrib_string("host");

if(host==null)

lr.output_message("Failed to get the host from the command line");

else

lr.output_message("Host = "+host);