Command restrictions

15 pts.
Tags:
Bash
Linux
A Linux question: Can you restrict a certain command to a specific time range. I don't want to be able to run command x between 7 and 8 ? Any assistance would be appreciated. Regards

Answer Wiki

Thanks. We'll let you know when a new response is added.

How about a cron job that renames the command or changes the attributes during the time period where usage is restricted?

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Gilly400
    Hi, That's a smart idea from Labnuke99, maybe you could just CHMOD it to be inaccessible or unexecuteable during your time period. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Renier
    Hi There, Thanks for the response. Yip, thats what I did at the end of my unfruitful search on the web. Thanks again guys. Regards Renier
    15 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following