| 
 
				
					| 
  
  
    | Autor | Nachricht |  
    |  | 
        
					| Titel: help with script file  Verfasst am: 10.06.2006, 03:09 Uhr |  |  
    | 
        
          | 
  
 Anmeldung: 26. Okt 2005
 Beiträge: 146
 Wohnort: Out There
 
 |  | 
        
          | Hello....I made a small script just fooling around with learning some basics....it cleans the cookies out of the ./dillo directory. The script looks like this: 
 #!/bin/bash
 rm  cookies
 
 There is a hidden directory in my /home/bob  which is "./dillo. So the script is very basic and works. What I need to do is use an "if not exist" statement so that if there is no cookies file, I wont get an error message. I am not sure how to do this. I tried this:
 
 if not exist goto exit
 :exit
 
 figured it may not work....looks more like DOS syntax....can anyone help????
 
  |  
          | _________________
 "Kanotix....what, me worry?!"
 |  
         
	        |  |  |  
    |  |  
    |  |  
    |  | 
        
					| Titel: help with script file  Verfasst am: 10.06.2006, 03:14 Uhr |  |  
    | 
        
          | 
 
 Anmeldung: 09. Jan 2006
 Beiträge: 1720
 
 
 |  | 
        
          | #!/bin/bash 
 if exist /.dilo/cookies
 rm ~/.dilo/cookies
 fi
 |  
          |  |  
         
	        |  |  |  
    |  |  
    |  |  
    |  |  |  |