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 20 of 1,237   
   Maurice Kinal to All   
   almost there   
   24 Apr 11 20:12:56   
   
   Hey All!   
      
   Added 'file' to the tuxpower.sh script to ensure that the posted script   
   is actually a script and nothing else.  Also added is a check to ensure   
   the poster has read access to the script to be posted and if not then   
   exist with a special code (15) to indicate that is the case.   
      
   For now I just added an 'if' that calls up 'file' like so;   
      
     if [ "$(file $1 | grep "shell script text")" ]   
      
   which if $1 isn't a shell script should cause tuxpower.sh to exit and   
   not post an unsuitable file to the echo, such as a binary file which   
   would be extremely bad.   
      
   Unless someone has anything further to add, this should be the final   
   posting of 'tuxpower.sh'.  :::knock on wood:::   
      
   Offhand I think this looks good as is.   
      
   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