Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Suggest HOWTO

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th October 2005, 22:52
aolex aolex is offline
Junior Member
 
Join Date: Oct 2005
Location: NL
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aolex Send a message via Yahoo to aolex
Default bash scripting for begginers

a simple tutorial for bash scripting users would be very nice and usefull . why do i need this ? i would like to create an installer and i would like to check some things ... something like (will do it in php , sorry ) :

$user = $USERNAME;
if($user != 'root')
{
echo 'you need administrative rights to install this!';
exit;
}
else
{
$get1 = wget http://some_link/;
if(!$get1)
{
echo 'could not download package $get1';
echo 'continue ?'
read answer;
if($answer == y)
{
wget the rest bla bla bla
}
else
{
exit;
}

please , this would be very usefull for me and for others ! thank you
__________________
Firefox, the browser that works!
http://img337.imageshack.us/img337/1584/firefox5ew.gif
Reply With Quote
Sponsored Links
  #2  
Old 21st October 2005, 00:15
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Arrow

http://www.tldp.org/LDP/abs/html/index.html
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 21st October 2005, 11:33
aolex aolex is offline
Junior Member
 
Join Date: Oct 2005
Location: NL
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aolex Send a message via Yahoo to aolex
Default

if i will make my script using that tutorial, would you take a look on it and tell me if there's something wrong (syntax)? thanks
__________________
Firefox, the browser that works!
http://img337.imageshack.us/img337/1584/firefox5ew.gif
Reply With Quote
  #4  
Old 21st October 2005, 12:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

Quote:
Originally Posted by aolex
if i will make my script using that tutorial, would you take a look on it and tell me if there's something wrong (syntax)? thanks
Why don't you simply test it?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 21st October 2005, 15:45
aolex aolex is offline
Junior Member
 
Join Date: Oct 2005
Location: NL
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aolex Send a message via Yahoo to aolex
 
Default

it's quite complicated and reading so many pages for a script is kind of much ... too much i'd say !
__________________
Firefox, the browser that works!
http://img337.imageshack.us/img337/1584/firefox5ew.gif
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 20:49.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.