Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-31-2004, 08:52 AM   #1
Registered: Aug 2003
Location: France
Distribution: SuSE 7.2/8.1/8.2/9.0/9.1
Posts: 81

Rep: Reputation: 15
Question atq details - cron/crontab


I'm trying to use at command to submit shell scripts.
The pb is when I issue atq or at -l I don't see the name of the script
to execute. Is it possible to see it somewhere ? Is it stored in a file ?

I used cron/crontab till now. But I have some problems with scripts
where cron ends with an error saying "cannot execute binary file".
My script are in bash and contain #!/bin/sh and a PATH and are executable.
When I type sh they execute allright.

Does someone have an idea on these subjects ?

Thanks for any hint
Old 01-02-2005, 05:14 AM   #2
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 182

Rep: Reputation: 25
atq gives you the id and some more

use the id with at -c as below (id is the first number of the atq resul)
at -c id
give you a huge answer about what will be executed and the environment, so look
at the last part of the answer which will be the script you type.


1 members found this post helpful.
Old 01-03-2005, 02:01 AM   #3
Registered: Aug 2003
Location: France
Distribution: SuSE 7.2/8.1/8.2/9.0/9.1
Posts: 81

Original Poster
Rep: Reputation: 15
Thanks tlowk.

I read the man page but it was not clear to me that this option had this function.
They say
-c cats the jobs listed on command line to standard output
Now it's clear


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
Help Needed In ATQ fpfernando Programming 0 11-07-2005 03:07 AM
Extra cron jobs not in "crontab -e"? inspleak Linux - General 2 07-21-2004 09:47 PM
crontab vs cron.daily ? SheldonPlankton Linux - Newbie 1 07-16-2004 12:10 PM
Cron/Crontab Question cmfarley19 Linux - General 2 04-09-2003 01:09 PM
Cron/Crontab loocw Linux - General 2 03-08-2001 02:16 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:35 AM.

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