LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-17-2010, 11:14 AM   #1
jestinjoy
Member
 
Registered: May 2004
Location: India
Distribution: Ubuntu 9.04, Debian Lenny
Posts: 121

Rep: Reputation: 22
crond not starting shell based apps


Hi,

I tried using cron to start rtorrent. But I couldnt start it successfully. My crontab looks like this.

Code:
# m h  dom mon dow   command
40 22 17 11 * rtorrent
My cron is running properly. How could I start a new shell , so that rtorrent could run using cron.
 
Old 11-17-2010, 12:12 PM   #2
d072330
Member
 
Registered: Nov 2007
Location: USA
Distribution: CentOS 5/6
Posts: 186

Rep: Reputation: 6
I do believe you have to give the full path to the program/script you want to run in cron.

Example

Quote:
# m h dom mon dow command
40 22 17 11 * /opt/rtorrent
 
Old 11-18-2010, 07:15 PM   #3
jestinjoy
Member
 
Registered: May 2004
Location: India
Distribution: Ubuntu 9.04, Debian Lenny
Posts: 121

Original Poster
Rep: Reputation: 22
re

My problem was that the gui apps not starting up. Now using the display option its working fine now. I gave like this.

Code:
# m h  dom mon dow   command
47 09 18 11 * env DISPLAY=:0 gnome-terminal -e rtorrent
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/sbin/service crond unable to start - gives permission error on /usr/sbin/crond mgervacio Linux - Newbie 6 07-16-2008 01:03 PM
crond shell execution problems lm317t Linux - General 1 02-22-2005 09:46 AM
Starting apps after starting xfce?? gtgoku Slackware 2 08-21-2004 01:49 PM
Apps not starting pimver Linux - Software 3 04-07-2004 03:01 PM
starting X apps Syncrm Linux - General 3 02-06-2002 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration