Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Script/Program idea
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
VolcomPimp
Tux's lil' helper
Tux's lil' helper


Joined: 11 Mar 2004
Posts: 135
Location: Newark, CA

PostPosted: Sat Mar 20, 2004 12:30 am    Post subject: Script/Program idea Reply with quote

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
View user's profile Send private message
Lajasha
Veteran
Veteran


Joined: 17 Mar 2004
Posts: 1040
Location: Vibe Central

PostPosted: Sat Mar 20, 2004 12:53 am    Post subject: Reply with quote

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
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Sat Mar 20, 2004 12:13 pm    Post subject: Reply with quote

emerge xxx && script.sh
in which the script sends you some kind of email or whatever (play "We are the champions" at full volume :lol: )
Back to top
View user's profile Send private message
Lajasha
Veteran
Veteran


Joined: 17 Mar 2004
Posts: 1040
Location: Vibe Central

PostPosted: Sat Mar 20, 2004 2:55 pm    Post subject: Reply with quote

hehe "ROCK ON"

very true, never thought of doing that. It is always the simple things that seem to evade me. :mrgreen:
Back to top
View user's profile Send private message
VolcomPimp
Tux's lil' helper
Tux's lil' helper


Joined: 11 Mar 2004
Posts: 135
Location: Newark, CA

PostPosted: Sat Mar 20, 2004 11:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Angrybob
Guru
Guru


Joined: 19 Apr 2003
Posts: 575

PostPosted: Sat Mar 20, 2004 11:26 pm    Post subject: Reply with quote

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 :lol: )


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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum