A friend of mine is just starting to use Linux, loves it, but is having a
problem.  He gets the following error when trying to run his dialup
script.

The only line in the script (further below) works, because it works when
he types it verbatim at the prompt.  He can get connected but not with the
script.  He's using RedHat and I have been unable to help him past the
obvious since I'm running Slackware.  Can anyone help?

When he tries to run the script, he gets the following:

: command not found
: unrecognized command
pppd version 2.2 patch level 0
Usage: /usr/sbin/pppd [ arguments ], where arguments are:
        <device>        Communicate over the named device
        <speed>         Set the baud rate to <speed>
        <loc>:<rem>     Set the local and/or remote interface IP
                        addresses.  Either one may be omitted.
        asyncmap <n>    Set the desired async map to hex <n>
        auth            Require authentication from peer
        connect <p>     Invoke shell command <p> to set up the serial line
        crtscts         Use hardware RTS/CTS flow control
        defaultroute    Add default route through interface
        file <f>        Take options from file <f>
        modem           Use modem control lines
        mru <n>         Set MRU value to <n> for negotiation
        netmask <n>     Set interface netmask to <n>
See pppd(8) for more options.


The script (when he types the exec line with or without the exec, at the
prompt manually, he gets connected (he types it exactly as below):

# PPP Dialup script for dialing up to internet (via bash shell):

exec /usr/sbin/pppd /dev/cua0 115200 connect "/usr/sbin/chat -f 
/usr/local/bin/login-script" modem defaultroute


His login-script is the modem response tags, but they work fine, so they
are not attached.  It's RedHat v5.x.  Help please.

Reply via email to