LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 01-31-2013, 09:17 PM   #1
Moggertron
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


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
 
Old 02-01-2013, 06:04 PM   #2
Moggertron
LQ Newbie
 
Registered: Feb 2011
Location: Western Australia
Distribution: Precise Pangolin 12.04 LTS
Posts: 6

Original Poster
Rep: Reputation: 0
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.

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


Reply


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 02:44 AM
Ubuntu Server 12.04 LTS - Question about partition. ExemptOA Linux - Newbie 2 05-09-2012 08: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 11:40 AM
Ubuntu LTS Server login question MarkoSan Linux - Software 3 09-23-2010 02:16 PM
[SOLVED] Anacron question... ddenton Linux - General 3 05-24-2010 11:06 AM


All times are GMT -5. The time now is 03:46 AM.

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