Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7940747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:28:06+00:00 2026-06-03T23:28:06+00:00

I have setup a cronjob to remove a file that is being generated by

  • 0

I have setup a cronjob to remove a file that is being generated by another script each hour.

The file´s name: inc.php?cronUsers

My current command looks like this:

rm -f "/root/inc.php?cronUsers"

The problem is that, when there are more than one file, the file names change like this:

inc.php?cronUsers.1,inc.php?cronUsers.2 and so on..

I am realy new to all of this, so the only lucky guess was to do:

rm -f "/root/inc.php?cronUsers.*"

But this seems not work.

How else could I delete all files that start with inc.php?cronUsers ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T23:28:08+00:00Added an answer on June 3, 2026 at 11:28 pm

    rm -f inc.php\?cronUsers*

    seems to work :

    $ touch "inc.php?cronUsers.1"
    $ touch "inc.php?cronUsers.2"
    $ touch "inc.php?cronUsers"
    $ ls
    inc.php?cronUsers  inc.php?cronUsers.1  inc.php?cronUsers.2
    $ rm -f inc.php\?cronUsers*
    $ ls
    <empty> :)
    

    Regards

    (why did you write your question title as “that starts with *” ?? Did I miss something?)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a CRON job php script that I just set up not too
I have a php script that comes down to the following: while ($arr =
I have a cron job the executes a PHP script. The cron is setup
I have a PHP file that I would like to run once per day.
I have setup a cronjob in etc/crontab file as shown below */1 * *
I have cron jobs setup that runs a few PHP scripts often. The issue
I'm trying to setup a PHP file as a cron job, where that PHP
I have setup file of winform. but i want to change my icon how
I need to set up a cronjob that would run some ruby script on
i have multiple cronjobs that are setup as define: 0 1 * * *

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.