euglug.org

[작성자:] admin

  • [Eug-lug] Email from root



    Neil ParkerMon Apr 10 22:35:52 PDT 2006

    Bob Miller wrote,
    >(
    >    echo EHLO example.com
    >    echo RCPT To: recipient at example.com
    >    echo MAIL From: sender at example.com
    >    echo DATA
    >    sed 's/^.$//' < a_file
    >    echo '.'
    >) | nc -q10 localhost smtp
    
    The sed command should probably be
    
         sed 's/^\.$//' < a_file
    
    instead.  Without the backslash, it matches, and blanks out, any line
    consisting of exactly one arbitrary character.  What you want is to match
    any line consisting of exactly one period.
    
    Though actually, if memory serves, correct dot quoting goes more like
    this:
    
         sed 's/^\.$/../' < a_file
    
    or something like that.
    
    
    But since the sender is running as root, the su method, as described by
    Patrick, is probably the most transparent way to do it.
    
         su sender -c 'mail -s "subject" recipient at there < message_file'
    
    Of course this only works if "sendinguser" is a real user on your machine.
    If you want the mail to appear to be from a nonexistant user (a mail
    alias, for example), lower-level access is necessary, such as Bob's
    SMTP example quoted above, or you can call your mail agent directly...if
    you're using sendmail, it looks something like this:
    
         ( echo "From: sender at here"
           echo "To: recipient at there"
           echo "Subject: Foo bar baz"
           echo
           cat message_file
         ) | sendmail -i -fsender recipient at there
    
                   - Neil Parker
    
  • [Eug-lug] Computer control of valves



    Ben BarrettMon Apr 10 21:01:58 PDT 2006

    AC or DC?  I have a few links to start out:
    
    1-wire controllers:
    http://www.aagelectronica.com/aag/en-us/dept_2.html
    http://www.aagelectronica.com/aag/index.html (front page)
    
    Digikey only seemed to have this 24V output module, in black or red:
    http://www.digikey.com/scripts/DkSearch/dksus.dll?Detail?Ref=9085&Row=511138&Site=US
    http://www.digikey.com/scripts/DkSearch/dksus.dll?Detail?Ref=9085&Row=510961&Site=US
    I did find some sealed solid-state 24V relays there:
    http://www.digikey.com/scripts/DkSearch/dksus.dll?Detail?Ref=10099&Row=627139&Site=US
    http://www.digikey.com/scripts/DkSearch/dksus.dll?Detail?Ref=10099&Row=627300&Site=US
    and an hermetically sealed model which is much more expensive:
    http://www.digikey.com/scripts/DkSearch/dksus.dll?Detail?Ref=12192&Row=626000&Site=US
    
    Perhaps my most interesting find:
    http://www.cnc4pc.com/DC_Relay_Board.htm
    
    Hope I'm not too far off-base here :)
    
       Ben
    
    
    
    
    On 4/10/06, Allen Brown <abrown at peak.org> wrote:
    >
    > At least for this year 8 should do.  In my wildest dreams
    > I can't imagine using more than 16.  But I would be happy
    > with 8.
    > --
    > Allen Brown  abrown at peak.org  http://www.peak.org/~abrown/
    >    The first rule of intelligent tinkering is to keep all the pieces.
    >      --- Aldo Leopold
    >
    > Ben Barrett wrote:
    > > How many relays do you need?  (How many distinct outputs/valves
    > > to control?)
    > >
    > >    Ben
    > >
    > >
    > > On 4/10/06, Allen Brown <abrown at peak.org> wrote:
    > >
    > >>I want to set up a small computer (Linux of course) to
    > >>control the valves for watering my lawn.  I'm thinking
    > >>of using the TS7200 as the computer.
    > >>http://www.embeddedarm.com/epc/prod_SBC.htm
    > >>
    > >>That gets me a bunch of parallel outputs.  Good for
    > >>controlling valves.  But I need to control 24V.  To
    > >>satisfy Corvallis that it is safe, the most straightforward
    > >>is to use relays between the computer and the valves.
    > >>
    > >>Do you know of a suitable relay board?
    > >>Input control: 3V-5V
    > >>Output control: 24V @ 1A or more
    > >>--
    > >>Allen Brown  abrown at peak.org  http://www.peak.org/~abrown/
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://www.euglug.org/pipermail/euglug/attachments/20060410/90b22fc3/attachment-0001.htm
    
  • [Eug-lug] Computer control of valves



    Allen BrownMon Apr 10 20:18:25 PDT 2006

    At least for this year 8 should do.  In my wildest dreams
    I can't imagine using more than 16.  But I would be happy
    with 8.
    -- 
    Allen Brown  abrown at peak.org  http://www.peak.org/~abrown/
       The first rule of intelligent tinkering is to keep all the pieces.
         --- Aldo Leopold
    
    Ben Barrett wrote:
    > How many relays do you need?  (How many distinct outputs/valves
    > to control?)
    > 
    >    Ben
    > 
    > 
    > On 4/10/06, Allen Brown <abrown at peak.org> wrote:
    > 
    >>I want to set up a small computer (Linux of course) to
    >>control the valves for watering my lawn.  I'm thinking
    >>of using the TS7200 as the computer.
    >>http://www.embeddedarm.com/epc/prod_SBC.htm
    >>
    >>That gets me a bunch of parallel outputs.  Good for
    >>controlling valves.  But I need to control 24V.  To
    >>satisfy Corvallis that it is safe, the most straightforward
    >>is to use relays between the computer and the valves.
    >>
    >>Do you know of a suitable relay board?
    >>Input control: 3V-5V
    >>Output control: 24V @ 1A or more
    >>--
    >>Allen Brown  abrown at peak.org  http://www.peak.org/~abrown/
    
  • [Eug-lug] Computer control of valves



    Ben BarrettMon Apr 10 18:50:21 PDT 2006

    How many relays do you need?  (How many distinct outputs/valves to control?)
    
       Ben
    
    
    On 4/10/06, Allen Brown <abrown at peak.org> wrote:
    >
    > I want to set up a small computer (Linux of course) to
    > control the valves for watering my lawn.  I'm thinking
    > of using the TS7200 as the computer.
    > http://www.embeddedarm.com/epc/prod_SBC.htm
    >
    > That gets me a bunch of parallel outputs.  Good for
    > controlling valves.  But I need to control 24V.  To
    > satisfy Corvallis that it is safe, the most straightforward
    > is to use relays between the computer and the valves.
    >
    > Do you know of a suitable relay board?
    > Input control: 3V-5V
    > Output control: 24V @ 1A or more
    > --
    > Allen Brown  abrown at peak.org  http://www.peak.org/~abrown/
    >    When you say "I wrote a program that crashed Windows",
    >    people just stare at you blankly and say "Hey, I got those
    >    with the system, *for free*".  --- Linus Torvalds
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://www.euglug.org/pipermail/euglug/attachments/20060410/93a9d2a2/attachment.htm
    
  • [Eug-lug] Computer control of valves



    Allen BrownMon Apr 10 18:43:32 PDT 2006

    I want to set up a small computer (Linux of course) to
    control the valves for watering my lawn.  I'm thinking
    of using the TS7200 as the computer.
    http://www.embeddedarm.com/epc/prod_SBC.htm
    
    That gets me a bunch of parallel outputs.  Good for
    controlling valves.  But I need to control 24V.  To
    satisfy Corvallis that it is safe, the most straightforward
    is to use relays between the computer and the valves.
    
    Do you know of a suitable relay board?
    Input control: 3V-5V
    Output control: 24V @ 1A or more
    -- 
    Allen Brown  abrown at peak.org  http://www.peak.org/~abrown/
       When you say "I wrote a program that crashed Windows",
       people just stare at you blankly and say "Hey, I got those
       with the system, *for free*".  --- Linus Torvalds
    
  • [Eug-lug] Email from root



    Patrick R. WadeMon Apr 10 17:23:54 PDT 2006

    Garl Grigsby wrote:
    > Is there any way, either somewhere in sendmail or from the command line, 
    > to have mail sent from root appear to come from another user? I've got a 
    > bunch of jobs that run as root and send out status messages via root. 
    > I'd like them to appear to come from another address. I'm currently 
    > using the 'mail' command to send the messages.
    
    Are you using Sendmail?  Some MTAs (notably sSMTP) support a 
    reverse-aliases file.  Googlemancy suggests Sendmail may do this with 
    the genericstable, but i haven't used one on my Sendmail setups.
    
    As to clients and command lines, nail (a command-line mail client that 
    can do MIME) supports a -r option to specify From.  As you're running 
    jobs as root, you could also do
    
    # su user -c 'fortune `# or other commands` |
    mail -s "example message `date +%s`" badd_karma at comcast.net'
    
    (I.e., the command inside the 'quotes' is executed as "user").
    (And `# this` or $(# this) is the best i've come up with for bash 
    in-line comments).
    -- 
    On two occasions I have been asked [by members of Parliament!], 'Pray,
    Mr. Babbage, if you put into the machine wrong figures, will the right
    answers come out?' I am not able rightly to apprehend the kind of
    confusion of ideas that could provoke such a question.
    	-- Charles Babbage
    
  • [Eug-lug] looking for J2EE java developers



    Walter HurstMon Apr 10 17:03:16 PDT 2006

    Hello all,
    
    I know this is the LUG group, but I was wondering if anybody here  
    knows of any enterprise (aka J2EE) java developers who might be  
    interested in contracting work? Also if anybody knows of a local JUG  
    community, please let me know!
    
    The gigs would probably be short term 1099 project based work. The  
    contractor would need to have their own computer(s) and high speed  
    internet connection. The clients would be located in the San  
    Francisco Bay Area but little or no travel would be expected. This  
    kind of work is best for those who like the contracting environment  
    -- fast paced environments, changing projects, interesting  
    technologies, good wages, but not guaranteed work and no company  
    benefits.
    
    Anyone interested can email me at walter at pstpartners.com and we can  
    discuss further. If you know of anyone who might be interested,  
    please tell them to email me.
    
    Thanks,
    
    Walter.
    
  • [Eug-lug] Wireless Help – Nobody wants to help an Old Retired Sailor



    LinuxRocks!Mon Apr 10 16:51:58 PDT 2006

    On Fri, Apr 07, 2006 at 11:29:36PM -0700, Mr O wrote:
    > Date: Fri, 7 Apr 2006 23:29:36 -0700 (PDT)
    > From: Mr O <notanatheist at yahoo.com>
    > Subject: Re: [Eug-lug] Wireless Help - Nobody wants to help an Old Retired
    > 	Sailor
    > To: Eugene Unix and Gnu/Linux User Group <euglug at euglug.org>
    > 
    > For the most help post on a Monday morning. I bet more people on
    > the list check their mail from work as much or more than from
    > home. 
    > 
    > "cat /proc/pci"
    lspci is also a handy tool for pci bus info. 
    
    Jamie
    
    > 
    > --- Jim Darrough <jdarrough at gmail.com> wrote:
    > 
    > > Hey guys! Please? I want to get wireless internet working on
    > > my FC5 box. 
    > > Can someone email me and tell me how to find the PCI card's
    > > info from a 
    > > terminal? I would be willing to purchase lunch for anyone able
    > > to help 
    > > me. My box is very small, and I can bring it to you. I will
    > > supply the 
    > > kbd & mouse, you supply the monitor and expertise.
    > > 
    > > Any takers?
    > > 
    > > By the way, I am thinking Taco Bell or Quiznos, not the
    > > Electric 
    > > Station. Heh heh
    > > 
    > > I am available on the weekend. Please email for telephone
    > > number.
    > > 
    > > Thanks, Jim Darrough
    > >
    > 
    > __________________________________________________
    > Do You Yahoo!?
    > Tired of spam?  Yahoo! Mail has the best spam protection around 
    > http://mail.yahoo.com 
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    
  • [Eug-lug] Email from root



    Bob MillerMon Apr 10 14:54:34 PDT 2006

    Garl Grigsby wrote:
    
    > Is there any way, either somewhere in sendmail or from the command line, 
    > to have mail sent from root appear to come from another user? I've got a 
    > bunch of jobs that run as root and send out status messages via root. 
    > I'd like them to appear to come from another address. I'm currently 
    > using the 'mail' command to send the messages.
    
    You could do it via SMTP if nothing else...
    
    (
        echo EHLO example.com
        echo RCPT To: recipient at example.com
        echo MAIL From: sender at example.com
        echo DATA
        sed 's/^.$//' < a_file
        echo '.'
    ) | nc -q10 localhost smtp
    
    Your smtp daemon may mistake you for a spammer; you'll have to debug
    that yourself.  Also, I just typed that in; didn't test it.
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com
    
  • [Eug-lug] Email from root



    Garl GrigsbyMon Apr 10 14:46:24 PDT 2006

    larry price wrote:
    > mail -s"I'mreally from ROOT" -u garl garl at example.com < a_file
    >
    >   
    This still shows as coming from root....
    
    Date: Mon, 10 Apr 2006 14:42:41 -0700
    From: root <root at example.com>
    Message-Id: <xxx.xxx at srv1.internaldomain.name>
    To: garl.grigsby at mydomain.net
    Subject: test