On Thu, 28 Sep 2000 11:46 "Smith, Jonathan" wrote:
>PPP Client (works great with GUI rp3) but how about the command line???
>
>I setup my diel out access with RP3 and it works great. but the down side
is that I am trying to setup a shell script that will do the following
>
>1) Run top and save the output to a file
>2) Dail out to my ISP
>3) email me the output of top
>4) Logout from ISP
>
>How can I get the RP3 to dail out without the GUI???

Try starting the connection like this:

  /sbin/usernetctl ppp0 up

Then in /etc/ppp/ip-up.local add this:

  /usr/bin/top n 1 b | /bin/mail -s "Current Processes" [EMAIL PROTECTED]
  /bin/sleep 10 (gives sendmail time to deliver the message)
  /sbin/usernetctl ppp0 down

Make sure ip-up.local is executable and it will by run by pppd when a PPP
connection is established.

Tony
-- 
Anthony E. Greene <[EMAIL PROTECTED]> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
AIM: TonyG05    ICQ: 91183266    Jabber: TonyGreene
Linux. The choice of a GNU Generation. <http://www.linux.org/>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to