View Single Post
  #1  
Old 20th October 2005, 23: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