Where do I put this script reference, please?

From: James Butler (stupidscript_at_hotmail.com)
Date: 08/20/04

  • Next message: James Butler: "Re: Where do I put this script reference, please?"
    Date: 20 Aug 2004 09:40:36 -0700
    
    

    I have a script that initializes my winmodem so kppp can find it.

    The way I currently use it is to launch the script from a link/icon,
    let the initialization happen, then I can launch kppp and it finds the
    modem. I do this manually, each time I boot up the system (RH9).

    I would like the script to run automatically.

    I have set sudoers to allow my "normal" user to run this script, as it
    requires root permissions, like running kppp does. I set sudoers to
    allow my "normal" user to run kppp, too. There's no problem, in either
    case.

    Here's the script (invoked by "/sbin/sudo /etc/startmodem"):

    /sbin/sudo /usr/bin/insmod -f pctel
    /sbin/sudo /usr/bin/insmod -f ptserial

    (I then run "/sbin/sudo /usr/bin/kppp" to launch kpp, successfully)

    I need to be fully logged in as the "normal" user before I can launch
    the script (I think), so I am wondering where I should place the
    invocation in which startup file. Do I put it in xinitrc, or what?

    I haven't experimented, because I don't want to screw up the boot/X
    process, if I can help it. Frankly, I'm happy it works at all, however
    it would be convenient to run the script automatically.

    Thanks in advance for your advice.


  • Next message: James Butler: "Re: Where do I put this script reference, please?"

    Relevant Pages

    • Re: How do I run a rooy script in auto mode?
      ... with kppp dialer to execute the script files. ... Another technique is to have the kppp binary set to SUID. ... Still another method is to chuck kppp, and create a dumb script to run ... That's built for a US Robotics modem (other modems prefer AT&F0 as the ...
      (alt.os.linux)
    • Re: Where do I put this script reference, please?
      ... > I have a script that initializes my winmodem so kppp can find it. ... then I can launch kppp and it finds the ...
      (comp.os.linux.x)
    • Re: kppp problem?
      ... > My problem is that when I am using kppp fetchnews cannot find ... > ISP's news server. ... kppp dialler does not call the ifup-post script. ...
      (comp.os.linux.misc)
    • Re: Redhat 9 - dialup modem
      ... William A. Fain wrote: ... KPPP. ... Is there a script I need to accomplish this. ...
      (linux.redhat.misc)
    • Re: [kde-linux] kppp and cron
      ... kppp: cannot connect to X server:0 ... The xhost command needs to be executed from within the X session. ... but point is I'm not executing this script from within an X ...
      (KDE)