LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 01-07-2006, 02:05 AM   #1
linfreak
LQ Newbie
 
Registered: Oct 2003
Posts: 14

Rep: Reputation: 0
FC1 job Scheduler problem - "at" command doesnt wrk


Hi all,
I am facing an issue scheduling a job in Fedora Core 1.I need to use the "at" command to start a job at a specified time (actually my broadband service provides free unlimited downloads between 2:00AM and 8:00AM).

[user@localhost Apps]$ at 2:30
at> execute
at> <EOT>
job 27 at 2006-01-07 02:30
[user@localhost Apps]$


"execute" is a shell script.
The following are the contents of my shell script "execute"

'''''''''''''Shell script''''''''''''''''''''
#! /bin/bash
/home/user/Apps/BitTornado/btdownloadheadless.py /home/user/Apps/BitTornado/mytorrent.torrent --saveas /mnt/e/linux/torrent_downloads/mytorrent 1>> /dev/null 2>> /dev/null

'''''''''''''Shell script''''''''''''''''''''

But the job is not starting at 2:00 AM.In fact,the "at" command simply does not work. It accepts the job i specify, assigns a job ID to it, but simply refuses to start the job at the given time.

I tried the following
---------------------

1. tried using "at" command as a root user,still it doesnt work

2. I tried chking the "at" command as follows

[user@localhost Apps]$ at now
at> execute
at> <EOT>
job 27 at 2006-01-06 19:30
[user@localhost Apps]$


But still the job does not run

3.I checked the "at" queue using the "atq". It displays the pending job as
27 2006-01-07 02:30 a user
but once the shceduled time elapses, the "at" queue no longer displays the job. But job does not start

4. I tried googling, but couldnt find any solid clue as to what could be the cause.

5. But i did come accross a link which said, the "at" command uses two files in the /etc folder, namely, at.allow and at.deny. I checked the /etc folder, the at.allow does not exists but at.deny exists and is empty

6. I checked and found "atd" running.

Am i missing something ????

Please help me resolve this problem.

regards
Harris
 
Old 01-07-2006, 02:30 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
ok, well the first guess is always that the script you're running isn't executable (chmod +x) secondly i would suggest that you attempt to manually run the process that at would do. by this i don't just mane run your script though. if you run "at -c job" you'll get the actaul script that at will run, so just run that and see if it actaully works. after that you're looking at other permissions issues, or path probelms.... is "execute" on your path?
 
Old 01-08-2006, 03:12 AM   #3
linfreak
LQ Newbie
 
Registered: Oct 2003
Posts: 14

Original Poster
Rep: Reputation: 0
Hi

Thanks a lot for the help.I have actually found the reason as to y at was not starting my program. The shell script,rather Bittornado was the culprit.

I was invoking btdownloadheadless.py using "at" command, now btdownloadheadless.py reports error if i invoke it thro "at" (i redirected the standard error to a file) saying

"Error opening terminal:unknown."


Looks like btdownloadheadless.py is importing curses. When i commented out this import, the job got invoked at the scheduled time. The following link helped me resolve the issue

http://www.linuxquestions.org/questi...postid=1668601

Thanks again for responding

Regards
linfreak
 
  


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
"stalled" problem in " scp" command gentleshark Linux - Software 1 08-30-2005 02:08 AM
"stalled" problem in " scp" command gentleshark Linux - Networking 1 08-29-2005 12:41 PM
Doesnt recognize "start-pppoe" command? grazak Linux - Software 1 03-29-2005 11:43 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
"segmentation error" when issuing "useradd" command through terminal with RH 9.0 kaihuang Linux - General 0 10-21-2003 11:47 PM


All times are GMT -5. The time now is 06:20 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