Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Simple scripts to automate task's Need help
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
lowbatt
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2002
Posts: 83

PostPosted: Fri Jul 19, 2002 12:17 am    Post subject: Simple scripts to automate task's Need help Reply with quote

I'm looking for a good site on how to make a simple script to automate something.

Like if i type foo and i want it to run 3 things in a certain order first.

If ya see what I mean.
_________________
Information is pure. Take a knife, for example. You can use it to cut up vegetables, butter your bread, etc. Or you can use it as a weapon. The way in which information exists in its many forms leaves for us the decision how to use it. - Maynard -TOOL
Back to top
View user's profile Send private message
metalhedd
l33t
l33t


Joined: 30 May 2002
Posts: 692
Location: Ontario Canada

PostPosted: Fri Jul 19, 2002 12:22 am    Post subject: Reply with quote

From the main gentoo page theres a link to "articles" from there you'll se a bash programming howto. its really simple actually. alot like an MS-DOS .bat file but alot more powerful.
Back to top
View user's profile Send private message
lowbatt
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2002
Posts: 83

PostPosted: Fri Jul 19, 2002 12:23 am    Post subject: Reply with quote

Man I feel dumb now :) *heads off to main site*
_________________
Information is pure. Take a knife, for example. You can use it to cut up vegetables, butter your bread, etc. Or you can use it as a weapon. The way in which information exists in its many forms leaves for us the decision how to use it. - Maynard -TOOL
Back to top
View user's profile Send private message
lowbatt
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2002
Posts: 83

PostPosted: Fri Jul 19, 2002 12:40 am    Post subject: Reply with quote

ok I see a guide about RC scripts and init scripts but either I'm missing the point or im not looking in the wrong spot. Can maybe I get a link ":)
_________________
Information is pure. Take a knife, for example. You can use it to cut up vegetables, butter your bread, etc. Or you can use it as a weapon. The way in which information exists in its many forms leaves for us the decision how to use it. - Maynard -TOOL
Back to top
View user's profile Send private message
metalhedd
l33t
l33t


Joined: 30 May 2002
Posts: 692
Location: Ontario Canada

PostPosted: Fri Jul 19, 2002 12:43 am    Post subject: Reply with quote

well, the articles page links to all 4 parts of the bash article, so I wont bother with a link, just look again, its #4 Under Daniel Robbins "Bash by Example"
Back to top
View user's profile Send private message
metalhedd
l33t
l33t


Joined: 30 May 2002
Posts: 692
Location: Ontario Canada

PostPosted: Fri Jul 19, 2002 12:46 am    Post subject: Reply with quote

ok I have 199 posts right now so I'm gonna post here one more time just to see if I step out of apprentice yet :)
Sorry for the spam :)
Back to top
View user's profile Send private message
lowbatt
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2002
Posts: 83

PostPosted: Fri Jul 19, 2002 12:47 am    Post subject: Reply with quote

ok i found it :) thanks for the help!
_________________
Information is pure. Take a knife, for example. You can use it to cut up vegetables, butter your bread, etc. Or you can use it as a weapon. The way in which information exists in its many forms leaves for us the decision how to use it. - Maynard -TOOL
Back to top
View user's profile Send private message
metalhedd
l33t
l33t


Joined: 30 May 2002
Posts: 692
Location: Ontario Canada

PostPosted: Fri Jul 19, 2002 12:48 am    Post subject: Reply with quote

No Problem..... dang, still apprentice.
Back to top
View user's profile Send private message
KiTaSuMbA
Guru
Guru


Joined: 28 Jun 2002
Posts: 430
Location: Naples Italy

PostPosted: Fri Jul 19, 2002 1:20 am    Post subject: Reply with quote

Other than the gentoo site, there is a very nice (and COMPLETE) HOW-TO: The Advanced Bash Programming HOW-TO (or its sucessor, the advanced bash scripting Guide [url] http://www.tldp.org/guides.html#abs [/url] )
You can also search the linux documentation project site ( [url] www.tldp.org [/url]) for any additional bits of info.
Hope this helps a little :wink:
If you get down to any specific trouble, I, and I'm sure quite a few other people, will be glad to help you. :)
_________________
Need to flame people LIVE on IRC? Join #gentoo-otw on freenode!
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