|
How to output the results of the AT command - properly!
Hi,
I am new to UNIX and I am more used to simple commands like those in VMS.
One of them is the ability to get the output from a job using the /out=<file> command in VMS.
I want to submit a job (a set of unix commands) using the AT command but to get the output in a file like that used in VMS.
Now I know many of you are saying, "just redirect it using the '>' character'. I tried this and it's not producing what I expected. I don't think it's as simple as that.
For example (the qdesign command is a powerhouse (COGNOS) command, and not a unix command).
Here is my BAT file ...
#!/bin/csh
/bin/date
################################################################
# Recompile global QUICK screens, for Sydney
qdesign dict=/mis/sydmips/obj/phd.pdc << 'flag1'
use /mis/sydmips/obj/compilemips.qks nolist
exit
'flag1'
I've tried submitting this with ...
$ at -c -f compile.bat now > compile.out
I get only the line that says it submitted the command
$ echo compile.out | at -c -m now
I get an email to say that it was "run", but no standard output of the BAT file!
$ at -c -m now < compile.bat
Again I get a job number, an email to say it ran but no actual output.
How do I get actual output from the compile.bat routine, like as if I was running it online!?
Thank you
|