euglug.org

[작성자:] admin

  • [Eug-lug] OT: C question



    Bob MillerMon Aug 27 14:25:06 PDT 2007

    Fred James wrote:
    
    > I need to build a string into a character array (which I know how to 
    > do).  But one of the characters needs to be 'Ctrl-T' - any ideas?  Thank 
    > you in advance for any help you may be able to offer
    
        char my_string[] = "Type ? for Tenex";
        my_string[5] = 'T' & 0x1F;
    
    or...
    
        const char my_string[] = "Two for \x14 and \x14 for two";
    
    Is that what you're looking for?
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com
    
  • [Eug-lug] OT: C question



    Fred JamesMon Aug 27 13:51:05 PDT 2007

    All
    I need to build a string into a character array (which I know how to 
    do).  But one of the characters needs to be 'Ctrl-T' - any ideas?  Thank 
    you in advance for any help you may be able to offer
    Regards
    Fred James
    
    PS: the string is used in the write (int n_written = write(int fd, char 
    *buf, int n);
    
    
  • [Eug-lug] WTF did you do to my machine Larry?



    Ben BarrettMon Aug 27 08:30:29 PDT 2007

    Also if you do get fulled connected, you might get some clues on further
    debugging from the counts/stats on the network interface -- how many packets
    have gone in and out?
    
    ben
    
    
    On 8/27/07, erock23175 at aol.com <erock23175 at aol.com> wrote:
    >
    >  I havn't had an opportunity to implement either your or Larry's
    > suggestions yet. However, when it goes through the process, It's like it
    > completes the connection then is stalled at the server, then it dumps the
    > connection.  I'll get back to you guys this afternoon on my progress.
    >
    > -E
    >
    >
    >  -----Original Message-----
    > From: Neil Parker <nparker at lyl.llx.com>
    > To: euglug at euglug.org
    > Sent: Sun, 26 Aug 2007 10:46 pm
    > Subject: Re: [Eug-lug] WTF did you do to my machine Larry?
    >
    >  Larry Price wrote,
    >
    > >try rerunning pppconfig and making sure that the connection settings
    >
    > >are as they should be.
    >
    > >
    >
    > >If that doesn't cure it, look through /etc/event.d and make sure that
    >
    > >it is not launching a getty on ttyS0
    >
    > >
    >
    > >Also look to make sure there is a /dev/ttyS0 and that pppd thinks that
    >
    > >that's where the modem is.
    >
    > >
    >
    > >On 8/26/07, erock23175 at aol.com <erock23175 at aol.com> wrote:
    >
    > >> For some reason I can't stay online anymore. The computer sees the mod=
    em,
    >
    > >> dials the modem, waits for carrier and then dumps the connection for l=
    ack of
    >
    > >> one. I know it isn't that the computer can't see the modem as I can he=
    ar and
    >
    > >> see it dialing out and achieving a connection, I know it isn't my prov=
    ider
    >
    > >> due to the fact that A) I'm signed on right now on the same account on=
     my
    >
    > >> virii-ridden Windoze machine, and B) it was working just fine before. =
    I'm
    >
    > >> convinced that some file got messed with when we did that serial netwo=
    rk
    >
    > >> set-up, I just don't know what. Any help???
    >
    >
    > Personally, I doubt the problem is in /etc/event.d or the lack of a
    >
    > /dev/ttyS0.  If it were either of those, the errer would appear before
    >
    > the modem even tried to dial.  Besides, in the /etc/event.d case, we
    >
    > verified before we left on Thursday that the getty we had running on
    >
    > /dev/ttyS0 was gone.
    >
    >
    > My advice would be to look in the log files.  Become root, and do this:
    >
    >
    >      cd /var/log
    >
    >      less messages
    >
    >
    > This should display your system message log on the screen.  Type "G" to go
    >
    > to the end, and then "?pppd" to search backward for the most recent
    >
    > message from PPP.  The error that's causing the problem should be
    >
    > somewhere near that point.  (You can press the space bar to go forward a
    >
    > screenful, or "b" to go backward a screenful.  Press "q" to get back to
    >
    > the command line.)
    >
    >
    > What does the error message say?
    >
    >
    > (If you can't find an error message in "less messages", try the above
    >
    > with "less syslog".)
    >
    >
    >
    > Also, what does the error sound like?  Normally when I connect I hear the
    >
    > dialtone, followed by the tones for the digits of phone number, maybe a
    >
    > ring or two, and then a few seconds of steady tones, and a bunch of
    >
    > static, and then I'm connected.  How far into that sequence does yours get
    >
    > before it fails?
    >
    >
    >                - Neil Parker
    >
    > _______________________________________________
    >
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >  ------------------------------
    > Email and AIM finally together. You've gotta check out free AOL Mail<http=
    ://o.aolcdn.com/cdn.webmail.aol.com/mailtour/aol/en-us/index.htm?ncid=3DAOL=
    AOF00020000000970>
    > !
    >
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://euglug.org/pipermail/euglug/attachments/20070827/5a301c99/attac=
    hment.htm
    
  • [Eug-lug] WTF did you do to my machine Larry?



    erock23175 at aol.comMon Aug 27 07:12:25 PDT 2007

     I havn't had an opportunity to implement either your or Larry's suggestions yet. However, when it goes through the process, It's like it completes the connection then is stalled at the server, then it dumps the connection.? I'll get back to you guys this afternoon on my progress.
    
    -E
    
    
     
    
    
     
    
    -----Original Message-----
    From: Neil Parker <nparker at lyl.llx.com>
    To: euglug at euglug.org
    Sent: Sun, 26 Aug 2007 10:46 pm
    Subject: Re: [Eug-lug] WTF did you do to my machine Larry?
    
    
    
    
    
    
    
    
    
    
    Larry Price wrote,
    >try rerunning pppconfig and making sure that the connection settings
    >are as they should be.
    >
    >If that doesn't cure it, look through /etc/event.d and make sure that
    >it is not launching a getty on ttyS0
    >
    >Also look to make sure there is a /dev/ttyS0 and that pppd thinks that
    >that's where the modem is.
    >
    >On 8/26/07, erock23175 at aol.com <erock23175 at aol.com> wrote:
    >> For some reason I can't stay online anymore. The computer sees the modem,
    >> dials the modem, waits for carrier and then dumps the connection for lack of
    >> one. I know it isn't that the computer can't see the modem as I can hear and
    >> see it dialing out and achieving a connection, I know it isn't my provider
    >> due to the fact that A) I'm signed on right now on the same account on my
    >> virii-ridden Windoze machine, and B) it was working just fine before. I'm
    >> convinced that some file got messed with when we did that serial network
    >> set-up, I just don't know what. Any help???
    
    Personally, I doubt the problem is in /etc/event.d or the lack of a
    /dev/ttyS0.  If it were either of those, the errer would appear before
    the modem even tried to dial.  Besides, in the /etc/event.d case, we
    verified before we left on Thursday that the getty we had running on
    /dev/ttyS0 was gone.
    
    My advice would be to look in the log files.  Become root, and do this:
    
         cd /var/log
         less messages
    
    This should display your system message log on the screen.  Type "G" to go
    to the end, and then "?pppd" to search backward for the most recent
    message from PPP.  The error that's causing the problem should be
    somewhere near that point.  (You can press the space bar to go forward a
    screenful, or "b" to go backward a screenful.  Press "q" to get back to
    the command line.)
    
    What does the error message say?
    
    (If you can't find an error message in "less messages", try the above
    with "less syslog".)
    
    
    Also, what does the error sound like?  Normally when I connect I hear the
    dialtone, followed by the tones for the digits of phone number, maybe a
    ring or two, and then a few seconds of steady tones, and a bunch of
    static, and then I'm connected.  How far into that sequence does yours get
    before it fails?
    
                   - Neil Parker
    _______________________________________________
    EUGLUG mailing list
    euglug at euglug.org
    http://www.euglug.org/mailman/listinfo/euglug
    
    
    
     
    
    
    ________________________________________________________________________
    Email and AIM finally together. You've gotta check out free AOL Mail! - http://mail.aol.com
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://euglug.org/pipermail/euglug/attachments/20070827/196cf74e/attachment-0001.htm
    
  • [Eug-lug] WTF did you do to my machine Larry?



    erock23175 at aol.comMon Aug 27 07:08:03 PDT 2007

     Ty I'll get back to you with my results
    
    -E
    
    
     
    
    
     
    
    -----Original Message-----
    From: larry price <laprice at gmail.com>
    To: Eugene Unix and Gnu/Linux User Group <euglug at euglug.org>
    Sent: Sun, 26 Aug 2007 4:52 pm
    Subject: Re: [Eug-lug] WTF did you do to my machine Larry?
    
    
    
    
    
    
    
    
    
    
    try rerunning pppconfig and making sure that the connection settings
    are as they should be.
    
    If that doesn't cure it, look through /etc/event.d and make sure that
    it is not launching a getty on ttyS0
    
    Also look to make sure there is a /dev/ttyS0 and that pppd thinks that
    that's where the modem is.
    
    On 8/26/07, erock23175 at aol.com <erock23175 at aol.com> wrote:
    > For some reason I can't stay online anymore. The computer sees the modem,
    > dials the modem, waits for carrier and then dumps the connection for lack of
    > one. I know it isn't that the computer can't see the modem as I can hear and
    > see it dialing out and achieving a connection, I know it isn't my provider
    > due to the fact that A) I'm signed on right now on the same account on my
    > virii-ridden Windoze machine, and B) it was working just fine before. I'm
    > convinced that some file got messed with when we did that serial network
    > set-up, I just don't know what. Any help???
    >
    >  -E
    >
    >  ________________________________
    >  Email and AIM finally together. You've gotta check out free AOL Mail!
    >
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >
    _______________________________________________
    EUGLUG mailing list
    euglug at euglug.org
    http://www.euglug.org/mailman/listinfo/euglug
    
    
    
     
    
    
    ________________________________________________________________________
    Email and AIM finally together. You've gotta check out free AOL Mail! - http://mail.aol.com
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://euglug.org/pipermail/euglug/attachments/20070827/92ce4c39/attachment.htm
    
  • [Eug-lug] pkg-config question



    Devin RobinsonSun Aug 26 23:25:05 PDT 2007

    On Saturday 25 August 2007 08:36:25 pm Bob Miller wrote:
    > Mr O wrote:
    > > That's what I needed to know, where to put it. Also, how it
    > > should be set.
    > > Do I:
    > > 1. PKG_CONFIG_PATH=/usr/lib;usr/local/lib
    > > 2. $PKG_CONFIG_PATH=/usr/lib;usr/local/lib
    > > 3. Other?
    >
    > 1. Use semicolons, not colons.
    >
    
    1. Use colons ':', not semicolons ';'. ;-)
    
    > 2. export it.
    >
    > 3. probably want /usr/local before /usr (so local changes override
    >    the distro.
    >
    >    export PKG_CONFIG_PATH=/usr/local/lib:/usr/lib
    
    4. Some distros already have ${PKG_CONFIG_PATH} set, if you use bash (or 
    compatible):
    
    	PKG_CONFIG_PATH+=:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
    	export PKG_CONFIG_PATH
    
    Note: /usr/local/lib/pkgconfig and /usr/lib/pkgconfig should already be in the 
    default search path for .pc files. If they're in /usr/{local/,}lib, they 
    should be mv'd to the appropriate place.
    
    Thanks,
    	- Devin
    
    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: not available
    Type: application/pgp-signature
    Size: 189 bytes
    Desc: This is a digitally signed message part.
    Url : http://euglug.org/pipermail/euglug/attachments/20070826/8bc99797/attachment.pgp
    
  • [Eug-lug] WTF did you do to my machine Larry?



    Neil ParkerSun Aug 26 22:46:47 PDT 2007

    Larry Price wrote,
    >try rerunning pppconfig and making sure that the connection settings
    >are as they should be.
    >
    >If that doesn't cure it, look through /etc/event.d and make sure that
    >it is not launching a getty on ttyS0
    >
    >Also look to make sure there is a /dev/ttyS0 and that pppd thinks that
    >that's where the modem is.
    >
    >On 8/26/07, erock23175 at aol.com <erock23175 at aol.com> wrote:
    >> For some reason I can't stay online anymore. The computer sees the modem,
    >> dials the modem, waits for carrier and then dumps the connection for lack of
    >> one. I know it isn't that the computer can't see the modem as I can hear and
    >> see it dialing out and achieving a connection, I know it isn't my provider
    >> due to the fact that A) I'm signed on right now on the same account on my
    >> virii-ridden Windoze machine, and B) it was working just fine before. I'm
    >> convinced that some file got messed with when we did that serial network
    >> set-up, I just don't know what. Any help???
    
    Personally, I doubt the problem is in /etc/event.d or the lack of a
    /dev/ttyS0.  If it were either of those, the errer would appear before
    the modem even tried to dial.  Besides, in the /etc/event.d case, we
    verified before we left on Thursday that the getty we had running on
    /dev/ttyS0 was gone.
    
    My advice would be to look in the log files.  Become root, and do this:
    
         cd /var/log
         less messages
    
    This should display your system message log on the screen.  Type "G" to go
    to the end, and then "?pppd" to search backward for the most recent
    message from PPP.  The error that's causing the problem should be
    somewhere near that point.  (You can press the space bar to go forward a
    screenful, or "b" to go backward a screenful.  Press "q" to get back to
    the command line.)
    
    What does the error message say?
    
    (If you can't find an error message in "less messages", try the above
    with "less syslog".)
    
    
    Also, what does the error sound like?  Normally when I connect I hear the
    dialtone, followed by the tones for the digits of phone number, maybe a
    ring or two, and then a few seconds of steady tones, and a bunch of
    static, and then I'm connected.  How far into that sequence does yours get
    before it fails?
    
                   - Neil Parker
    
  • [Eug-lug] WTF did you do to my machine Larry?



    larry priceSun Aug 26 16:52:27 PDT 2007

    try rerunning pppconfig and making sure that the connection settings
    are as they should be.
    
    If that doesn't cure it, look through /etc/event.d and make sure that
    it is not launching a getty on ttyS0
    
    Also look to make sure there is a /dev/ttyS0 and that pppd thinks that
    that's where the modem is.
    
    On 8/26/07, erock23175 at aol.com <erock23175 at aol.com> wrote:
    > For some reason I can't stay online anymore. The computer sees the modem,
    > dials the modem, waits for carrier and then dumps the connection for lack of
    > one. I know it isn't that the computer can't see the modem as I can hear and
    > see it dialing out and achieving a connection, I know it isn't my provider
    > due to the fact that A) I'm signed on right now on the same account on my
    > virii-ridden Windoze machine, and B) it was working just fine before. I'm
    > convinced that some file got messed with when we did that serial network
    > set-up, I just don't know what. Any help???
    >
    >  -E
    >
    >  ________________________________
    >  Email and AIM finally together. You've gotta check out free AOL Mail!
    >
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >
    
  • [Eug-lug] WTF did you do to my machine Larry?



    erock23175 at aol.comSun Aug 26 15:23:17 PDT 2007

    For some reason I can't stay online anymore. The computer sees the modem, dials the modem, waits for carrier and then dumps the connection for lack of one. I know it isn't that the computer can't see the modem as I can hear and see it dialing out and achieving a connection, I know it isn't my provider due to the fact that A) I'm signed on right now on the same account on my virii-ridden Windoze machine, and B) it was working just fine before. I'm convinced that some file got messed with when we did that serial network set-up, I just don't know what. Any help???
    
    -E
    
    ________________________________________________________________________
    Email and AIM finally together. You've gotta check out free AOL Mail! - http://mail.aol.com
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://euglug.org/pipermail/euglug/attachments/20070826/84b06a4f/attachment.htm
    
  • [Eug-lug] pkg-config question



    Bob MillerSat Aug 25 20:36:25 PDT 2007

    Mr O wrote:
    
    > That's what I needed to know, where to put it. Also, how it
    > should be set. 
    > Do I:
    > 1. PKG_CONFIG_PATH=/usr/lib;usr/local/lib
    > 2. $PKG_CONFIG_PATH=/usr/lib;usr/local/lib
    > 3. Other?
    
    1. Use semicolons, not colons.
    
    2. export it.
    
    3. probably want /usr/local before /usr (so local changes override
       the distro.
    
       export PKG_CONFIG_PATH=/usr/local/lib:/usr/lib
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com