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 12-31-2004, 09:52 AM   #1
nadine.mauch
Member
 
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


Hello,

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 my_script.sh they execute allright.

Does someone have an idea on these subjects ?

Thanks for any hint
Nadine
 
Old 01-02-2005, 06:14 AM   #2
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 151

Rep: Reputation: 23
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.

Regards

Tlowk
 
1 members found this post helpful.
Old 01-03-2005, 03:01 AM   #3
nadine.mauch
Member
 
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
 
  


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


All times are GMT -5. The time now is 05:22 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration