Hi chris, problem is always that the user witango tries to write to disk. Is
this user allowed to write the new file.

If you try it in terminal, log in as witango and do your script there. If
this works, you can go on, otherwise you have to act as root to write in
this place.

Christian

> Von: Chris Millet <[EMAIL PROTECTED]>
> Antworten an: [EMAIL PROTECTED]
> Datum: Sun, 29 Jun 2003 23:38:23 -0500
> An: [EMAIL PROTECTED]
> Betreff: Re: Witango-Talk: External action  script won't write file to    disk
on 
> OSX (was Ext Action & ImageMagick on Mac OS X)
> 
> Thanks, this is helpful to know, and I may take you up on your offer very
> soon.
> 
> However, right now I simply need to be able to use an external action to
> trigger a script that writes a file to disk. Besides ImageMagick, I have
> another script I want to use to pare down a very large log file to just the
> html pages by eliminating any lines with reference to .jpg .gif .css etc.
> Then I would like to the output to be written to a file. Even such a script
> (see sample below) generates the exact same error.
> 
> Script 
> ======
> #!/bin/sh
> grep -v .jpg /logfilename | grep -v .gif | grep -v .css > /newlogfilename
> 
> Any idea why I can't use an external action to write a file to disk?
> 
> Thanks,
> Chris
> 
> 
> 
>> If you are writing the file out, make sure the user witango has writes
>> to where it is being written.
>> 
>> I spent a lot of time with imagemagick about a year ago or so. I wanted
>> to have a crossplatform method for doing high quality scaling. I
>> already did all kinds of conversions with RealBasic, but the
>> highquality scaling avail. in photoshop, or imagemagick was eluding me.
>> I even went so far to dl the source, and I even was able to compile a
>> library for each platform with codewarrior, including a carbon version.
>> The carbonization was a bitch. But then Quicktime 6 came out. The QT 6
>> API has the ability to convert just about anything from anything, and
>> apple updated the "none" codec in the QT 6 API to include High Quality
>> BiCubic Scaling (same as photoshop). So in all of my apps I write, I
>> use the QT api and it works great on all platforms, and is highly
>> optimized.
>> 
>> I have also written all the methods to have my apps be controlled from
>> witango, without the use of an external action. I use a tcf call. You
>> use the tcf, passing parameters of the file location, and what you want
>> done to the image, and where you want it put when done. The code in the
>> tcf communicates to the app, and the app does the work in a thread, so
>> it can handle another concurrent request. It can batch folders also.
>> 
>> I have been holding up the development for a couple of reasons. I was
>> waiting to see how the Wisp API from witango was going to look, and
>> there did not seem to that much interest from the community at the
>> time. I also am just finishing a patent application regarding some of
>> the whole systems I developed.
>> 
>> I just got Wisp last week. I am working through the API. I am going to
>> be doing a seminar at the witango conference showing how you can create
>> solutions for customers using Witanog/RealBasic and possibly wisp. My
>> hope is that I will have enough done to give a lot of this to the
>> community. It won't be free, but it won't be expensive. Cheap enough
>> for a small developer.
>> 
>> Anyway, If you give me the exact specs of what your solution is, it
>> might help me to give you something to beta test, and you wont have to
>> deal with imagemagick. I have spent a couple of years developing my
>> content publishing system, and it works well.
>> 
>> Robert.
>> 
>> On Sunday, June 29, 2003, at 05:39  AM, Chris Millet wrote:
>> 
>>> How would I do this? I tried changing permissions to 775 and even 777
>>> and I
>>> still received the same error.
>>> 
>>> Chris
>>> 
>>>> Has'nt that to do with write pernmissions? You might have to act as
>>>> root for some actions.
>>>> 
>>>> Christian
>>>> 
>>>> Am Samstag, 28.06.03 um 18:28 Uhr schrieb Chris Millet:
>>>> 
>>>>> I set up a simple script invoking the 'whoami' command and it works
>>>>> fine
>>>>> both from the command line and as an external action. However, when I
>>>>> rewrite the script to invoke ImageMagick's 'convert' utility, it
>>>>> works
>>>>> fine
>>>>> from the command line, but not as an external action. Instead, I
>>>>> receive the
>>>>> following error:
>>>>> 
>>>>> [Application�File]    [4]    START /scripts/script.taf
>>>>> WitangoServer
>>>>> [External�Action]    [5]    External
>>>>> [Query]    [5]    /Volumes/XRAID/mg2/scripts/whoami.sh; Parameters:
>>>>> x=LOGO:;
>>>>> [External�Action]    [5]    Forking process
>>>>> [External�Action]    [12]    Waiting on the child process
>>>>> [External�Action]    [112]    Error: No child processes
>>>>> [External�Action]    [112]    Waiting done
>>>>> [ActionResults]    [115]
>>>>> [External�Action]    [116]    Complete
>>>>> [Results�Action]    [117]    Results
>>>>> [request$�Vars]    [118]    variableTimeout=30;
>>>>> resultSet=[Array:0x0];
>>>>> 
>>>>> 
>>>>> The script "whoami.sh"
>>>>> ======================
>>>>> #!/bin/sh
>>>>> convert $x /Volumes/XRAID/mg2/scripts/logo.gif
>>>>> 
>>>>> I've also tried:
>>>>> 
>>>>> #!/bin/sh
>>>>> /usr/local/bin/convert $x /Volumes/XRAID/mg2/scripts/logo.gif
>>>>> 
>>>>> 
>>>>> Any ideas why this won't run as an external action?
>>>>> 
>>>>> Thanks,
>>>>> Chris
>>>>> 
>>>>> _____________________________________________________________________
>>>>> __
>>>>> _
>>>>> TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
>>>>> 
>>>> 
>>>> ______________________________________________________________________
>>>> __
>>>> TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
>>> 
>>> _______________________________________________________________________
>>> _
>>> TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
>>> 
>>> 
> 
> ________________________________________________________________________
> TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf

Reply via email to