From: Raja Iskandar Shah <rajaiskandars gmail com>
To: gnumeric-list <gnumeric-list gnome org>
Subject: Re: problem using ssconvert in shell script
Date: Fri, 3 Dec 2010 18:19:59 +0800
thanks. now noted that i have posted in the wrong user group
after looking at the link page, the absolute pathname for ssconvert is /usr/bin/ssconvert
meaning if need cron to execute ssconvert, then need to add in the shell script
PATH=$PATH:/usr/bin/ssconvert
On Fri, Dec 3, 2010 at 2:49 PM, Hal Ashburner <hal ashburner info> wrote:
Hi Raja,
You have an issue with either your understanding of cron or of shell
scripts. ssconvert is working fine so it's not really an issue for
this list.
You'll probably find your local LUG ie Linux Users Group will
explain the vagaries of these things better than we can because they
have more practice at such things.
Your favourite search engine with something like
Linux User Group Antartica
should turn up the Antartic user groups, well not quite so swap
antartica with any country you like, be it the one you're in, or
just one you like. Pick one, find its mailing list and there will
likely be a bunch of friendly, helpful people who will give you a
hand with these things. I'm sure there'd be good ones in Malaysia if
you happen to be thereabouts.
Try adding the full path to cd, mkdir, wget in your comands below
and the full path to ssconvert or by way of alternative, setting the
PATH variable early in your script.
PATH=$PATH:/opt/foo/wherever/you/keep/ssconvert:/opt/bar/other/stuff/you/need
Your LUG will explain better and provide more detail.
All the best.
Hal
On 3/Dec/10 5:31 PM, Raja Iskandar Shah wrote:
this is what i have added to cron (i have not included
the dates and times)
00 18 01 * * sh /opt/scripts/download_eids.sh # this works
15 18 01 * * sh /opt/scripts/ssconvert_eids.sh # this does not
work
30 18 01 * * sh /opt/scripts/etlclient_eids.sh # this works
for download_eids.sh which works i have the following
On Thursday 02 December 2010 20:10:40 Raja
Iskandar Shah wrote:
> the problem is only when the cron to execute the shell
script containing
> the ssconvert command