Summary: problem using "at" in a shell script

From: Mike Kopp (mike.kopp@gtri.gatech.edu)
Date: Tue Jan 04 1994 - 06:39:32 CST


In a previos article I asked about redirecting stdin within a shell script.
 

In article <mike.kopp-030194150222@kopp.gatech.edu>,
mike.kopp@gtri.gatech.edu (Mike Kopp) wrote:
.
.
.
> The nonWorking script file is
>
> #start
> if [ `/bin/true` ]
> then
> at -s now + ${NEW_TIME} minute <<!
> table.test 2>&1 | mail kopp
> !
> fi
> #end

Thanks to several people it now works. The solution is to put the end ! at
the beginning of the line, that is, this works:
#start
if [ `/bin/true` ]
then
  at -s now + ${NEW_TIME} minute <<!
  table.test 2>&1 | mail kopp
!
fi
#end

Another respondent made the good suggestion to use something like EOF
instead of !. This would be more clear.

-- 
Mike Kopp                                    
Electronic Support Measures Laboratory
Georgia Tech Research Institute 	       	       	mike.kopp@gtri.gatech.edu



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:53 CDT