• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: shell script doesn't run when run as cron job?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • mount iDisk without dialog box
      • From: Serge Ségu <email@hidden>
    • Re: shell script doesn't run when run as cron job?
      • From: Christopher Nebel <email@hidden>
References: 
 >Re: shell script doesn't run when run as cron job? (From: Andrew Oliver <email@hidden>)

  • Prev by Date: Mail Quits Unexpectedly Using An AppleScript
  • Next by Date: faxing
  • Previous by thread: Re: shell script doesn't run when run as cron job?
  • Next by thread: Re: shell script doesn't run when run as cron job?
  • Index(es):
    • Date
    • Thread