#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
 
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2019-01-12.   This site is PIKT® powered.
Copyright © 1998-2019 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
View the list of
Related Projects
and Products