cron output error


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers cron output error
# 1  
Old 08-02-2009
cron output error

I am attempting to run a cron job, however, I receive this cron output error:

Error: of parameter : xxxxx does not make a valid output file.

What causes this?
# 2  
Old 08-03-2009
That can be different things. Without more detailed info for us you might have a look into this anyway:

https://www.unix.com/answers-frequent...n-crontab.html
# 3  
Old 08-03-2009
I want my weather software to create a page on a cron, save it, then I can direct my website visitors to the created page.

So I created this output.ini.php:

Code:
<?
/*
[output files]
currents_on=/home/userid/public_html/weather/templates/currents_on.html
*/
?>

This is the cron:

Code:
0 * * * * * php /home/userid/public_html/weather/hw3.php forecast=pass pass=citycurrents config=cityontario,output of=currents_on om=1

and this is the error as mentioned in my first post:

Code:
Error: of parameter : currents_on does not make a valid output file

I want to use the created html file so this page will load faster:

http://www.beamsvillewx.ca/weather/h...ig=cityontario

Last edited by AM1234; 08-04-2009 at 10:18 AM..
# 4  
Old 08-04-2009
I would try to put the cron command into a script and trigger that script by cron so you don't have to hand over parameters etc. - worth a try I think.
Also might read the link I had posted by Pederabo to make sure you have all environmet variables set, full paths used etc.
# 5  
Old 08-04-2009
Quote:
0 * * * * *
There seem to be too many asterisks in your crontab line.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Redirecting output to file through cron

Hi Does anyone have any suggestions for capturing the output into a file when i run it through cron? I have file called "quick.1" which contains two simple commands to be executed on the target host. And i have second file called "quick.2" which contains the wrapper script to ssh to the target... (1 Reply)
Discussion started by: chandika_diran
1 Replies

2. UNIX for Advanced & Expert Users

Script run by cron gives no output

Hi All, I have a script which checks the status of HP Smart Array & then emails me the output. The script run fine when executed manually but I receive no output when configured in a cron job. The script is below: hpacucli ctrl slot=3 show config | mail -s "ARRAY STATUS-`date`"... (6 Replies)
Discussion started by: coolatt
6 Replies

3. Shell Programming and Scripting

Running same script through cron gives different output

Hi All, I am running the below shell script through cron and surprisingly it gives different output $uname -a Linux 2.6.18-194.3.1.7.3.el5xen #1 SMP Fri Jul 30 00:08:45 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux $ echo $SHELL /bin/bash shell script: cat sar_cpu.sh #!/bin/bash ... (10 Replies)
Discussion started by: a1_win
10 Replies

4. Shell Programming and Scripting

Wrong output when run via Cron

Hello, This may be a simple one, but i can't see what the issue is. When i run the script via CLI, then i get the correct output via the if statement, but when i run via CRON i get the wrong statement. echo " Checking Job Status" >> $DIR/Bpimagecleanup_$DATE... (3 Replies)
Discussion started by: Junes
3 Replies

5. Solaris

Diffrent output in cron jobs

Hi, I have issue with cron. When i run script manually output is fine but when i add it to cron output file is not as same. both file attach some junk charecter comming in cron output. thanx Jignesh (5 Replies)
Discussion started by: jkmistry
5 Replies

6. Red Hat

Cron task output is 0, script output is OK

I have the following cron task set to run every 15 minutes to ascertain how many users are in the system and append the result to the log. /home/pronto/cus/whoisinc >> /home/pronto/cus/whoisin.log This is the whoisinc script date +"%d-%m-%Y,%k:%M,Pronto Users,`prowho -s | grep -v... (1 Reply)
Discussion started by: scottm
1 Replies

7. Shell Programming and Scripting

Calling C program from cron results in no output

I can call a C program from the shell and results are outputted as normal. The C program processes some files and spits out a .csv file. If I scheduled it in cron, there is no output. If their a special way to schedule C programs in cron? thanks & regards (1 Reply)
Discussion started by: hazno
1 Replies

8. Shell Programming and Scripting

Cron jobs redirecting output

Hi guys with regards to Cron jobs if for example i run a script and it produces output to the admin mail how could i stop it from doing that at script level and redirrect it to a file so that admin does not have all these emails about jobs done correctly. (4 Replies)
Discussion started by: musicmancanora
4 Replies

9. Solaris

cron output = 0 bytes

I have a cron job set to run a script everyday. If I run the script out side of cron it runs correctly. If cron runs the script is produces a 0 byte file and it puts the output in the / directory. The script is set to put the output in a specific directory. Any help would be appreciated. (8 Replies)
Discussion started by: mbattreall
8 Replies

10. UNIX for Dummies Questions & Answers

Cron + Script = No Output?

I've got an *extremely* simple script I want to run every minute: #!/bin/sh ping -c 1 192.168.1.20 > ~/onlinestatus.txt So, the script is called "status", it's executable, and in the correct path, etc. In a terminal window (I'm using Mac OS X), I can type status, and it will create... (4 Replies)
Discussion started by: jmf77
4 Replies
Login or Register to Ask a Question