• 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
help requested with cron-executed shell script in Linux
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

help requested with cron-executed shell script in Linux


  • Subject: help requested with cron-executed shell script in Linux
  • From: Dan Feather <email@hidden>
  • Date: Wed, 12 Apr 2006 17:35:05 -0500
  • Thread-topic: help requested with cron-executed shell script in Linux

Dear scripters,

I realize this ain't no Linux list, but I've often added shell snips to AS
code and have been asked to do what should be a simple thing as a cron task
on a Linux machine where some volumes are mounted by Macs. The problem is
that the Mac OS creates invisible files and (?) symlinks or such, and these
need to be deleted or they cause problems.

The first command I wrote works fine on my Mac from Terminal, but Linux
compains that "-delete" is not acceptable. ::

find /symlnks/io/jobs/ -name '._*' -delete

[ finds and delete files whose name start with "._" ]

So, I try using a call to a built-in (-exec) and the rm utility, thus:

find /symlnks/io/jobs/workflows5/dalim4/ -name '._*' -exec rm ;

(As a line in the crontab file, it is:
0    *    *    *    *    find /symlnks/io/jobs/ -name '._*' -exec rm ;
)

However, the output now says: "missing argument to '-exec' "

Can anyone spot the problem?

Might I be directed to a good (more appropriate) resource where I can submit
such a question?

Many thanks,

Dan Feather
email@hidden








 _______________________________________________
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:
    • Re: help requested with cron-executed shell script in Linux
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: Another appleScript WIKI question
  • Next by Date: Re: Another appleScript WIKI question
  • Previous by thread: Re: Another appleScript WIKI question
  • Next by thread: Re: help requested with cron-executed shell script in Linux
  • Index(es):
    • Date
    • Thread