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

Chuck Payne terrorpup at gmail.com
Thu Jun 3 14:54:48 EDT 2010


2010/6/1 Björn Gustafsson <bg-ale at bjorng.net>:
> 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
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>

FreeBSD, that's why the CSH for root. For now I just used sh, but I am
now going to teach myself a bit C Shell so I know the differents.

-- 
-----------------------------------------
Discover it! Enjoy it! Share it! openSUSE Linux.
-----------------------------------------
openSUSE -- en.opensuse.org/User:Terrorpup
openSUSE Ambassador/openSUSE Member
skype,twiiter,identica,friendfeed -- terrorpup
freenode(irc) --terrorpup/lupinstein

Have you tried SUSE Studio? Need to create a Live CD,  an app you want
to package and distribute , or create your own linux distro. Give SUSE
Studio a try. www.susestudio.com.



More information about the Ale mailing list