Path: utzoo!censor!geac!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!hsdndev!think.com!sdd.hp.com!elroy.jpl.nasa.gov!ncar!gatech!prism!juliet!rhoward From: rhoward@msd.gatech.edu (Robert L. Howard) Newsgroups: comp.unix.questions Subject: Re: How can one avoid sending mail after an `at' ? Keywords: at mail /dev/null Message-ID: Date: 10 Jan 91 16:23:37 GMT References: <1991Jan10.085555.3150@aar.alcatel-alsthom.fr> <7775@mgweed.UUCP> Sender: news@prism.gatech.EDU Organization: Georgia Tech Research Institute Lines: 48 In <7775@mgweed.UUCP> prg@mgweed.UUCP (Gunsul) writes: >In article <1991Jan10.085555.3150@aar.alcatel-alsthom.fr>, sap@aar.alcatel-alsthom.fr (Jacques Sap) writes: >> The man pages say: >> >> > Standard output and standard error output are mailed to the >> > user unless they are redirected elsewhere. >> >> So I tried "at now +...... >& /dev/null" >> >> But I still receive mail after completion, how to avoid it ? >> -- >Try redirecting BOTH output and error using > ... 2>&1 > /dev/null I think what we have here is the difference between csh/tcsh (in the first case) and sh/ksh (in the second case). This response probably does not address the problem. Both solutions here only redirect the output of the *at command itself* not the commands that at will run. The better solution might be.... % at now +.... at> command1 plus args >& /dev/null at> command2 and more args >& /dev/null at> ^D (some messages from at) % Now this prompts the question of how to redirect output for the command(s) that at will run... I *think* that at uses the login shell for the given user as defined in passwd. Any comments on the accuracy of this statement? Robert -- | Robert L. Howard | Georgia Tech Research Institute | | rhoward@msd.gatech.edu | MATD Laboratory | | (404) 528-7165 | Atlanta, Georgia 30332 | | UUCP: ...!{allegra,amd,hplabs,ut-ngp}!gatech!msd!rhoward | ------------------------------------------------------------------------- | "They [La Prensa] accused us of suppressing freedom of | | expression. This was a lie and we could not let them | | publish it." -- Nelba Blandon, Director of Censorship |