2 # Check if some command exits with non-zero status
6 system("($_[0]->{'cmd'}) >/dev/null 2>&1 </dev/null");
7 return { 'up' => $?==0 ? 1 : 0 };
12 print &ui_table_row($text{'exec_cmd'},
13 &ui_textbox("cmd", $_[0]->{'cmd'}, 50), 3);
18 $in{'cmd'} || &error($text{'exec_ecmd'});
19 $_[0]->{'cmd'} = $in{'cmd'};