automator shellscript
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