Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #4196
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Chris Elvidge <chris@mshome.net> |
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Problem running gnuplot in cron job |
| Date | Thu, 16 May 2019 14:07:32 +0100 |
| Organization | A noiseless patient Spider |
| Lines | 39 |
| Message-ID | <qbjnak$gq3$1@dont-email.me> (permalink) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Thu, 16 May 2019 13:07:32 -0000 (UTC) |
| Injection-Info | reader02.eternal-september.org; posting-host="867f0ca1e12ed254a54fd3c32bc5c519"; logging-data="17219"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19lyGwEJdAgVdSF0o/qNk4wNzNrliRDcGM=" |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
| Cancel-Lock | sha1:OrCHOdc3KUuBb4+7XlGqigUafeU= |
| Content-Language | en-GB |
| X-Mozilla-News-Host | news://reader80.eternal-september.org:119 |
| Xref | csiph.com comp.graphics.apps.gnuplot:4196 |
Show key headers only | View raw
Hi All, Can anyone explain this:
G N U P L O T
Version 5.2 patchlevel 6 last modified 2019-01-01
I have a bash file and a gnuplot file viz:
$ cat getfiles
#!/bin/bash
FILES=$(find /var/tmp/ -daystart -maxdepth 1 -regextype posix-awk -regex
".*_[0-9]{8}.*" -mtime -9)
gnuplot -c /home/pi/gpts/temp_weekly.gpt $FILES
$ cat temp_weekly.gpt
#!/usr/bin/gnuplot
# vim: filetype=gnuplot
#
if (ARGC > 0) {
do for [j=1:ARGC] { print ARGV[j] }
}
On two machines, RaspberryPis running Raspbian and OSMC, when "getfiles"
is run from the command line, temp_weekly.gpt outputs a list of files,
one per line, as expected.
When run from a cron job, I get an error:
print ARGV[j]
^
line 6: ':' expected
However on another, RPi running Void Linux, both command line and cron
job give the expected list of files.
What am I missing here?
Thanks.
--
Chris Elvidge, England
Back to comp.graphics.apps.gnuplot | Previous | Next | Find similar
Problem running gnuplot in cron job Chris Elvidge <chris@mshome.net> - 2019-05-16 14:07 +0100
csiph-web