Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, im trying to make a cron job that would delete everything in /home/kiddie/public_html/account/phaR5rus2t5abrUFExa9UPUspeTrevupa5pAjUPRaG7drebEmU 8U63PrE8rAPHef/st2xububedr3chepre29u4exEchutRu7etathejabr294aw4fr exufef8xehusep/ even dot files any idels? i tryed #!/bin/bash rm -f /home/kiddie/public_html/account/phaR5rus2t5abrUFExa9UPUspeTrevupa5pAjUPRaG7drebEmU 8U63PrE8rAPHef/st2xububedr3chepre29u4exEchutRu7etathejabr294aw4fr exufef8xehusep/* rm ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    1

    Cron Job

    Hi, im trying to make a cron job that would delete everything in /home/kiddie/public_html/account/phaR5rus2t5abrUFExa9UPUspeTrevupa5pAjUPRaG7drebEmU 8U63PrE8rAPHef/st2xububedr3chepre29u4exEchutRu7etathejabr294aw4fr exufef8xehusep/ even dot files any idels? i tryed

    #!/bin/bash

    rm -f /home/kiddie/public_html/account/phaR5rus2t5abrUFExa9UPUspeTrevupa5pAjUPRaG7drebEmU 8U63PrE8rAPHef/st2xububedr3chepre29u4exEchutRu7etathejabr294aw4fr exufef8xehusep/*

    rm -rf /home/kiddie/public_html/account/phaR5rus2t5abrUFExa9UPUspeTrevupa5pAjUPRaG7drebEmU 8U63PrE8rAPHef/st2xububedr3chepre29u4exEchutRu7etathejabr294aw4fr exufef8xehusep/.??*

    but this give me a error /bin/sh: del: command not found anyh ideals?

  2. #2
    Linux User
    Join Date
    Nov 2009
    Location
    France
    Posts
    292
    Write the full path to the command in your script run by cron :

    Code:
    /usr/bin/rm ...
    or in your cron file, set the PATH variable.
    0 + 1 = 1 != 2 <> 3 != 4 ...
    Until the camel can pass though the eye of the needle.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...