HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Suggest HOWTO (http://www.howtoforge.com/forums/forumdisplay.php?f=9)
-   -   bash scripting for begginers (http://www.howtoforge.com/forums/showthread.php?t=937)

aolex 20th October 2005 22:52

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 ;)

falko 21st October 2005 00:15

http://www.tldp.org/LDP/abs/html/index.html

aolex 21st October 2005 11:33

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 ;)

falko 21st October 2005 12:08

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? :rolleyes:

aolex 21st October 2005 15:45

it's quite complicated and reading so many pages for a script is kind of much ... too much i'd say !


All times are GMT +2. The time now is 11:19.

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