#false()
DESCRIPTION
returns FALSE (0)
SYNOPSIS
#false()
ARGUMENTS
none
EXAMPLES
# pikt +C 'output $text(#false())'
0
begin
=initmisscrit
if $alert() =~ "DownSystems|DownServers|DownClients"
set #interactive = #true()
else
set #interactive = #false()
fi
begin // assume no crisis (yet)
set #crisis = #false()
rule
if #length($password) == 0
&& $left($user,1) ne "+"
output mail "User $user has NO PASSWORD!"
if $user eq "root"
set #crisis = #true()
endif
endif
# ifdef page
# if missioncritical
end
if #crisis
=page($hostname() urgent shadow problem (see alert email),
=pagesysadmins, =always)
endif
# endif
# endifdef
rule // for changed scripts, diff and log/mail any changes
if #popen(DIFF, "=diff $hstfil $fil", "r") != #err()
while #read(DIFF) > 0
if #doheader
output mail "changes to $fil:"
output log "(L)" "changes to $fil:"
set #doheader = #false()
fi
output mail $rdlin
output log "(L)" $rdlin
endwhile
do #pclose(DIFF)
else
output mail "can't open process for reading!"
quit
fi
if #doheader == #false() // so we entered the diff
// loop above, have diff
// output, hence require a
// separator line
output mail =newline
fi
SEE ALSO
#and()
#or()
#true()
#not()
#if()
Numerical Functions
String Functions