How to disable mail from the command "at"??????

How to disable mail from the command "at"??????

Post by Lai Kim Ming Elv » Sun, 23 Jan 1994 22:45:49



        I have written the following script file and run it under the command
        "at".  How can I disable the mail function after the job had funished?

        The file are t1, t2 and t3, as follows:

        <t1>

        if ( -r ~/file) then
                echo "test" >> ~/file
                at now + 1 min t2
        else
                echo "test" > ~/file
                at now + 1 min t3
        endif

        <t2>

        if ( -r ~/file ) then
                mv ~/file /usr/spool/mail/file
                sed '/test/d' /usr/spool/mail/test > ~/test
                rm /usr/spool/mail/file
        endif
                at now + 1 min t1

        <t3>

        if ( -r ~/file ) then
                yes | rm ~/file
        endif
        at now + 1 min t1

        I hope you can mail to me and teach me.  Thanks you in advance !!!!!

--
-------------------------------------------------------------------------


-------------------------------------------------------------------------

 
 
 

1. How to disable mail from the command "at"??????

        I have written the following script file and run it under the command
        "at".  How can I disable the mail function after the job had funished?

        The file are t1, t2 and t3, as follows:

        <t1>

        if ( -r ~/file) then
                echo "test" >> ~/file
                at now + 1 min t2
        else
                echo "test" > ~/file
                at now + 1 min t3
        endif

        <t2>

        if ( -r ~/file ) then
                mv ~/file /usr/spool/mail/file
                sed '/test/d' /usr/spool/mail/test > ~/test
                rm /usr/spool/mail/file
        endif
                at now + 1 min t1

        <t3>

        if ( -r ~/file ) then
                yes | rm ~/file
        endif
        at now + 1 min t1

        I hope you can mail to me and teach me.  Thanks you in advance !!!!!

--
-------------------------------------------------------------------------


-------------------------------------------------------------------------

2. linux and 80x43 screens

3. GETSERVBYNAME()????????????????????"""""""""""""

4. How much memory does OpenServer & Development System require?

5. Problem about command "mail" and "mailx".

6. About 3C589C

7. "write" "to" "flon" commands

8. Needed: XF86 3.1.1 BINARIES for Slakware 2.1

9. "weof" operation in "mt" command gives "permission denied"

10. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

11. ". / command" instead of "command" ???

12. HELP: "TOP" Command and "SZ" command

13. problems piping from "split" to "mail" (split | mail)