LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Anacron question Ubuntu 12.04 LTS (https://www.linuxquestions.org/questions/linux-general-1/anacron-question-ubuntu-12-04-lts-4175448083/)

Moggertron 01-31-2013 09:17 PM

Anacron question Ubuntu 12.04 LTS
 
Hi

I have a script called dssedit and it is in folder /home/username/myscripts. I have put the path to folder myscripts into bash.rc and dssedit runs at the commandline just by typing its name and hitting enter. I would like to run it everyday, 20 mins after booting my pc. I have added a line to anacrontab that says

1 20 disk_space_script dssedit

Should this work or do I need to show the absolute path to the script I want to run? Could someone make an example of how they would do it?

Thanks heaps

Mark

Moggertron 02-01-2013 06:04 PM

Hi

Solved it myself.

1 20 disk_space_script /home/myusername/myscripts/dssedit

did the trick.

There is a tab space between the 1, 20, disk_space_script and the path above. When I spaced it out to show in this post the additional spaces disappeared.


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