LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to schedule a bash command (not a script) in crontab (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-schedule-a-bash-command-not-a-script-in-crontab-4175638227/)

sumakn 09-12-2018 06:02 AM

How to schedule a bash command (not a script) in crontab
 
I need to schedule a specific command to run once at a specific time during the day under /etc/cron.d. I am familiar with scheduling scripts. But is it possible to schedule a command directly (ex: sudo apt-get clean) instead of putting it in a script?

jsbjsb001 09-12-2018 06:07 AM

Quote:

Originally Posted by sumakn (Post 5902468)
I need to schedule a specific command to run once at a specific time during the day under /etc/cron.d. I am familiar with scheduling scripts. But is it possible to schedule a command directly (ex: sudo apt-get clean) instead of putting it in a script?

First of all, have you done any research about this before asking here?

Second, this looks like a dupe of this: https://www.linuxquestions.org/quest...ab-4175638226/

I've reported this thread for closure.

rtmistler 09-12-2018 07:28 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 03:49 PM.