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

Chuck Payne terrorpup at gmail.com
Thu Jun 3 15:19:40 EDT 2010


On Thu, Jun 3, 2010 at 3:07 PM, Lightner, Jeff <jlightner at water.com> wrote:
> I don't think there's a requirement to use csh on FreeBSD.
>
> You can always change the default shell for root - just be sure to pick one that's statically linked that is in root's filesystem so it works in single user without other mounts.
>
> Alternatively you can just leave csh as the default and simply executed "exec sh" (or bash or ksh) after you login to change shells.
>
> -----Original Message-----
> From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of Chuck Payne
> Sent: Thursday, June 03, 2010 2:55 PM
> To: Atlanta Linux Enthusiasts - Yes! We run Linux!
> Subject: Re: [ale] Question about how to do something from bash to csh.
>
> 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.
>
> _______________________________________________
> 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
>
> Proud partner. Susan G. Komen for the Cure.
>
> Please consider our environment before printing this e-mail or attachments.
> ----------------------------------
> CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
> ----------------------------------
>
> _______________________________________________
> 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
>

Can't install bash :(. so for the most part it will be sh.

-- 
-----------------------------------------
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