Re: shell script doesn't run when run as cron job?
Re: shell script doesn't run when run as cron job?
- Subject: Re: shell script doesn't run when run as cron job?
- From: "Charles Arthur, UKClimbing Editor" <email@hidden>
- Date: Mon, 12 Dec 2005 19:14:51 +0000
Hi ...
At 09:37 -0800 on 12/12/05, Andrew Oliver wrote:
>Yes. Look at your script. The 'do shell script'
>
>> do shell script "curl \"http://technology.guardian.co.uk/\" >
>> \"Users/charles/Documents/Guardian/technology.html\""
>
>translates to:
>
>> curl "http://technology.guardian.co.uk/" >
>Users/charles/Documents/Guardian/technology.html
>
>You're missing a leading slash on the output redirection (it should be >
>/Users/charles/... )
>
>Funnily enough, this is exactly what the error message tells you:
>
>> Users/charles/Documents/Guardian/technology.html: No such file or directory
>
>It can't create the output file, so generates an error.
Thanks. I'll alter that.
But then why does it work when run from Script Editor, without change? And
it did get the correct links, rather than using the old version that I'd
tested with, when I did it (the cron is set to run around midnight on
Thursday, when the site is updated).
best
Charles
--
http://www.ukclimbing.com : 1,000+ British crags, 350+ British climbing walls
- searchable by distance rock type, etc, with 5-day weather forecasts for
every one - plus maps, articles, news, and the New Routes database. There's
even a cool shop attached...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden