View previous topic :: View next topic |
Author |
Message |
VolcomPimp Tux's lil' helper


Joined: 11 Mar 2004 Posts: 135 Location: Newark, CA
|
Posted: Sat Mar 20, 2004 12:30 am Post subject: Script/Program idea |
|
|
Im sittin here waitin for x to install and its takin a little which
gave me an idea.... how would I go about writing some sort
of program or script that would contact me over aim or send me
an email or somethin of the sort that I could check on my pda w/ my
wifi card to let me know that either a specific task or an emerge is completed?
I know some basic C++ and java which I don't ever put to use and though
that'd be a good usefull way to kinda get into programming or scripting in
linux. Any thoughts? |
|
Back to top |
|
 |
Lajasha Veteran


Joined: 17 Mar 2004 Posts: 1040 Location: Vibe Central
|
Posted: Sat Mar 20, 2004 12:53 am Post subject: |
|
|
That would be very usefull as I often do other things between emerging large files. This way you could be alerted "hey computer xxx is done compiling xxx". This would basicly allow you to put it outta mind till it is time to be dealt with instead of having to check on it every so often to see if it is done.
The best way would prolly be via email as almost any wireless device can do email. |
|
Back to top |
|
 |
yngwin Retired Dev


Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
Posted: Sat Mar 20, 2004 12:13 pm Post subject: |
|
|
emerge xxx && script.sh
in which the script sends you some kind of email or whatever (play "We are the champions" at full volume ) |
|
Back to top |
|
 |
Lajasha Veteran


Joined: 17 Mar 2004 Posts: 1040 Location: Vibe Central
|
Posted: Sat Mar 20, 2004 2:55 pm Post subject: |
|
|
hehe "ROCK ON"
very true, never thought of doing that. It is always the simple things that seem to evade me.  |
|
Back to top |
|
 |
VolcomPimp Tux's lil' helper


Joined: 11 Mar 2004 Posts: 135 Location: Newark, CA
|
Posted: Sat Mar 20, 2004 11:05 pm Post subject: |
|
|
thanx for the tip, should've thought of that on my own
but the part about playin "we are the champions" is a great
idea... lol
unfortunatly my system is like broke or somethin cause it crashed
in the middle of the compiling I was doing as I posted this
and Im getting certain libs are not found and stuff and I dono...
tryin 2 figure out what Im supposed 2 do, may have 2 restart from
stage 1 and compile my system over again,but whatever I do Ima
make a script like that.. |
|
Back to top |
|
 |
Angrybob Guru


Joined: 19 Apr 2003 Posts: 575
|
Posted: Sat Mar 20, 2004 11:26 pm Post subject: |
|
|
yngwin wrote: | emerge xxx && script.sh
in which the script sends you some kind of email or whatever (play "We are the champions" at full volume ) |
just remember, that only runs if it succeeds. You might also want to extend it so that if the emerge fails for some reason it runs a different script and you can run back to your computer to fix the problem |
|
Back to top |
|
 |
|