• 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
automator shellscript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

automator shellscript


  • Subject: automator shellscript
  • From: RenĂ© Brugman <email@hidden>
  • Date: Thu, 10 Dec 2009 21:07:35 +0100

Hi


I have made a workflow which: 1) downloads a pdf file from a fixed URL 2) convert it to text and store as a .rtf file 3) use a shell script to look for (fixed) string 4) show this text in terminal

The simple shellscript looks like:
cd aaaa/bbbb/
cat file.rtf|grep -i texttobefound (or grep -i texttobefound file.rtf


Now, this works if texttobefound is in the file. However, if it doesn't I get an Automator error that the shellscript encountered an error.
What am I doing wrong here?


If I get this to work I like the shell script to produce a standard text depending on the result of the grep command, something like "FOUND" or "NOT FOUND"

I hope somebody can help me.

Rene

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: automator shellscript
      • From: Ron Hunsinger <email@hidden>
    • Re: automator shellscript
      • From: Scott Ribe <email@hidden>
  • Prev by Date: Opening a specific URL on the web
  • Next by Date: Re: automator shellscript
  • Previous by thread: Re: Opening a specific URL on the web
  • Next by thread: Re: automator shellscript
  • Index(es):
    • Date
    • Thread