[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ip-up scripts [was: Re: /etc/lynx.cfg ...]



Hamish Moffatt dixit:
> 
> I think you should put
> 
> alias lynx="lynx -cfg=$HOME/.lynxrc", rather than using ~.

That's what I finally did, thanks a lot.

Another issue ... I'm trying to add some actions to the ip-up script, ie.
just trying to get the queued mail sent and then have the mail in the ISP
fetched automatically right after connection.  Also, I want the system clock
to update from a server and then the CMOS clock to update from the system's.

I'm in the belief that /etc/ppp/ip-up line

# Main Script starts here

run-parts /etc/ppp/ip-up.d

# last line

means that it will read any script in /etc/ppp/ip-up.d ... but I put these
two scripts in there (and set permissions to 755):

--------- /etc/ppp/ip-up.d/hora ---------
#!/bin/sh
# /etc/init.d/cron stop
/usr/sbin/rdate -s slug.ctv.es
/sbin/hwclock --systohc
# /etc/init.d/cron start
--------- /etc/ppp/ip-up.d/hora ---------

--------- /etc/ppp/ip-up.d/queue ---------
#!/bin/sh
runq -v
fetchmail -v -a -u a4608456
--------- /etc/ppp/ip-up.d/queue ---------

and runq seems to work (though not verbosely), but fetchmail doesn't work at
all.  I don't really know whether the clock script works, since I recently
updated the time from the command line.

May be the fact that permissions to /etc/ppp/ are set drwx------ has got to
do with it?

TIA

Horacio
-- 
Claves - GnuPG/PGP - Keys : http://www.rediris.es/cert/keyserver
o/or
Envía un mensaje vacío a homega@vlc.servicom.es con la línea de asunto:
Send a blank message to homega@vlc.servicom.es with the subject line:
Tipo de Clave/Key Type				Asunto:/Subject:

DSA/ElGamal					fetch dsa/elgamal
DSS/Diffie-Hellman				fetch dh/dss
RSA						fetch rsa


Reply to: