Hi experts
I have a little question, i would like to have a script on the startup (could 
be init.d) that should do two command lines:

/sbin/ifconfig eth0 | fgrep -i inet | cut -d : -f 2 | cut -d \  -f 1 &> 
ipnumero
mail -s "IP Number" [EMAIL PROTECTED] < ipnumero

I don�t know how to do a script, and have been looking but with no success.
So, anyone can tell me where should i go to have an answer or someone can help 
me with this???
Thank you for your time

--
Gonzalo Avaria S.
Linux User from the end of the World
CHILE

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to