plugin_command(3) Supportconfig Plugin Library Manual plugin_command(3) NAME plugin_command - Runs the specified <command>. SYNOPSIS plugin_command <command> DESCRIPTION Executes the <command> specified. Command pipes are supported. Returns the value of the command's exit code. EXAMPLES The following plugin commands: plugin_command "cat /etc/hosts | grep local" plugin_message "Return: $?" plugin_command "cat /etc/hosts | grep GONE" plugin_message "Return: $?" Return the following results: #==[ Command ]======================================# # /bin/cat /etc/hosts | grep local 127.0.0.1 localhost ::1 localhost ipv6-localhost ipv6-loopback fe00::0 ipv6-localnet Return: 0 #==[ Command ]======================================# # /bin/cat /etc/hosts | grep GONE Return: 1 REPORTING BUGS Please submit bug fixes or comments via: http://en.opensuse.org/Suppor‐ tutils#Reporting_Bugs AUTHOR Jason Record <jrecord@suse.com> SEE ALSO supportconfig(8) supportconfig.conf(5) scplugin.rc(3) section_header(3) pconf_files(3) plog_files(3) plugin_message(3) plugin_tag(3) vali‐ date_rpm(3) plugin_command 06 Oct 2010 plugin_command(3)[top]
Vote for polarhome |