home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   TUXPOWER      Advocacy for the Linux operating system      1,237 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 7 of 1,237   
   Maurice Kinal to All   
   fun and games with tuxpower.sh   
   16 Apr 11 17:21:40   
   
   Hey All!   
      
   I editted tuxpower.sh and added a checker to make sure the desired   
   script to be posted to this echo actually exists;   
      
   --------- start gpm cut n' paste   
      
   if [ ! -e "$script_dir/$1" ]   
   then   
     echo -e "No such script in $script_dir\a"   
     exit 1   
   fi   
      
   --------- end gpm cut n' paste   
      
   Then just for fun I thought to try out creating a patch and applying it   
   to the tuxpower.sh that got posted the other day as well as try out   
   posting the patch and the patched tuxpower.sh using the originally   
   editted tuxpower.sh in this user's (fido) path (/home/fido/bin).   
      
   Here are the steps I followed;   
      
   --------- start gpm cut n' paste   
      
   # create patch   
   cd ~/scripts   
   cp -v ~/bin/tuxpower.sh ~/scripts/tuxpower.new   
   diff -u tuxpower.sh tuxpower.new > tuxpower.patch   
      
   # don't need it anymore   
   rm -v tuxpower.new   
      
   # Apply patch   
   patch -Np0 -i tuxpower.patch   
      
   # insert an empty line at the end to make it look good as a post.   
   echo >> tuxpower.patch   
      
   # post the patch to the tuxpower echo and remove   
   tuxpower.sh tuxpower.patch && rm ~/scripts/tuxpower.patch   
      
   # now post the patched tuxpower.sh   
   tuxpower.sh tuxpower.sh   
      
   --------- end gpm cut n' paste   
      
   If this works then two posts should follow this post with the subjects   
   being "tuxpower.patch" and "tuxpower.sh".   
      
   Life is good,   
   Maurice   
      
   --- Msged/LNX 6.2.0   
    * Origin: The Pointy Stick Society (1:261/38.9)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca