LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-11-2009, 08:08 PM   #1
packets
Member
 
Registered: Oct 2005
Posts: 339

Rep: Reputation: 32
script no values if in crontab


I just created a script that when run, it will output the ff:

[root@smtp01 intigrix]# /var/intigrix/rate.sh > /var/intigrix/rates.txt
[root@smtp01 intigrix]# cat rates.txt
0,,99.08,0,OK

99.08 is a variable while the rest including 0 is a fixed values.

The problem is when I already put it in crontab, it only display the ff:

0,,,0,OK

The 99.08 is missing. My entry in crontab is the ff:

*/1 * * * * /var/intigrix/rate.sh > /var/intigrix/rates.txt

Is there a limitation in cron daemon? Just remember that when I do the commands in shell, it is ok but when I put it in cron, it has no values.
 
Old 03-12-2009, 06:29 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Hard to tell if you keep rate.sh secret.

My bet is that somewhere in rate.sh the value 99.08 is not generated. Usually that is due to omitting a path.

jlinkels
 
  


Reply



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 with comma separated values and what should be a simple script. zaber Programming 10 03-06-2008 12:58 PM
Shell Script: want to insert values in database when update script runs ring Programming 2 10-25-2007 10:48 PM
Script to create a list of values Jasper73 Programming 5 08-09-2007 02:01 AM
getting function return values in a Bourne script? ocicat Programming 5 08-01-2007 07:01 AM
Script to input values into firefox. WhiskeyTangoFoxtrot Programming 5 11-01-2006 12:38 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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