Re: Re Creating Email Notification - att: Alan Connor
From: Alan Connor (alanconnor_at_earthlink.net)
Date: 09/04/03
- Next message: Nils Petter Vaskinn: "Re: The incentive to respond is derived from the incentive to send the original message that triggered the challenge."
- Previous message: John Winters: "Re: executing a shell script with cron"
- In reply to: Doug Laidlaw: "Re Creating Email Notification - att: Alan Connor"
- Next in thread: Doug Laidlaw: "Re: Re Creating Email Notification - att: Alan Connor"
- Reply: Doug Laidlaw: "Re: Re Creating Email Notification - att: Alan Connor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 04 Sep 2003 07:23:18 GMT
On Thu, 04 Sep 2003 11:30:16 +1000, Doug Laidlaw <laidlaws@myaccess.com.au> wrote:
>
>
> Hi again Alan.
>
> You gave me a script with an entry in .bashrc starting:
>
> news () {
>
> (That's a curly brace. It doesn't look like it as I type.)
>
> Now every time I open a Konsole it has two lines:
>
> 'ash: /home/doug/.bashrc: line 10: syntax error near unexpected token `{
> 'ash: /home/doug/.bashrc: line 10: `news () {
>
> My shell is bash. It is usually spelled correctly in these messages.
>
> What is wrong?
>
> Doug.
Hey Doug. I don't remember the function, exactly.
Is the other, closing bracket there? (On its own line.) i
Is there a space after that first one?
$ cat -e .bashrc | less
will show you where the newlines are.
m () {
fetchmail && if [ -s ~/Mail/inbox ] ;
then rhn ;
sleep 3 ;
mutt ;
fi ;
}
That's a VERY correct function, with the ";" wherever a newline would be.
There's no spaces after the curly brackets, and no tabs. I use that function
ALL the time. (rhn is a script)
It wouldn't hurt to repost the function. I may be able to improve on it.
Alan C
-- take control of your mailbox ----- elrav1 ----- http://tinyurl.com/l55a
- Next message: Nils Petter Vaskinn: "Re: The incentive to respond is derived from the incentive to send the original message that triggered the challenge."
- Previous message: John Winters: "Re: executing a shell script with cron"
- In reply to: Doug Laidlaw: "Re Creating Email Notification - att: Alan Connor"
- Next in thread: Doug Laidlaw: "Re: Re Creating Email Notification - att: Alan Connor"
- Reply: Doug Laidlaw: "Re: Re Creating Email Notification - att: Alan Connor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|