[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Question about how to do something from bash to csh.

Any chance there are parens in the data from deadletters?   The way I
read that error, it looks like `postsuper' is a script that uses the
`test' command which is failing due to bad input.  Based on the error
message, it looks like you're not running this on Linux, is that true?
 The OS flavor may change the diagnosis.

On Sun, May 30, 2010 at 5:06 PM, Chuck Payne <terrorpup at gmail.com> wrote:
> On Fri, May 28, 2010 at 2:29 PM, Michael H. Warfield <mhw at wittsend.com> wrote:
>> This should work:
>> foreach i (`cat deadmail`)
>> postsuper -d $i
>> end
> Didn't work. I am getting this error...
> #!/bin/csh
> foreach i(`cat deadletters`)
> /usr/local/sbin/postsuper -d $i
> test: 3: Syntax error: "(" unexpected

Bj?rn Gustafsson