Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-31-2013, 10:17 PM   #1
LQ Newbie
Registered: Feb 2011
Location: Western Australia
Distribution: Precise Pangolin 12.04 LTS
Posts: 6

Rep: Reputation: 0
Anacron question Ubuntu 12.04 LTS


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

Old 02-01-2013, 07:04 PM   #2
LQ Newbie
Registered: Feb 2011
Location: Western Australia
Distribution: Precise Pangolin 12.04 LTS
Posts: 6

Original Poster
Rep: Reputation: 0

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.

Last edited by Moggertron; 02-01-2013 at 07:05 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 12.04 LTS 64 Bit newbie simple question to begin with johnny2bad Linux - Newbie 2 09-14-2012 03:44 AM
Ubuntu Server 12.04 LTS - Question about partition. ExemptOA Linux - Newbie 2 05-09-2012 09:33 PM
LXer: Ubuntu 12.04 LTS KVM Virtualization Battles 8.04.4, 10.04.4 LTS LXer Syndicated Linux News 0 04-09-2012 12:40 PM
Ubuntu LTS Server login question MarkoSan Linux - Software 3 09-23-2010 03:16 PM
[SOLVED] Anacron question... ddenton Linux - General 3 05-24-2010 12:06 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration