Twitter Updates

I need suEXEC

Wednesday, May 21, 2008
Recently, for a few days I have written a CGI program used only in local area network at my work. I’ll make the CGI send some image files to a client machine. It’s not a way to click on a link of a Browser to download them. I want to send them via AFP using the AppleEvent. Because those files have some resource data in a data-fork. If a Browser downloads image files, those resource data aren’t included in files downloaded.

I already prepared a program of the AppleScript to send files by using a IP address of a client and a full path of a file that a client selected. But when the CGI in the Perl language executed the AppleScript one via the osascript command, I was aware it is impossible to do that. Ordinarily, it seems the osascript command is executed as user “www”. In this case, the command is denied permission.

To clear the problem is very hard for me. I seem to have to compile the suEXEC command personally. I knew it when I read this web page. Things I need to do are to get the source of Apache, and to compile it, and to move the suEXEC command into an applicable directory. I wonder can I do that?

postscript:
I did! My CGI executed the osascript :-)
Wednesday, 21 May 2008 17:48:21 +0900

 Show corrected text

Recently, for a few days I have written a CGI program used only in local area network at my work.

Recently, I wrote a CGI program that is used only in the local area network at my work.

I'll make the CGI send some image files to a client machine.
It's not a way to click on a link of a Browser to download them.

I have made the CGI send some image files to a client machine, but this is not allowing me to click on a link to download the whole files.

I want to send them via AFP using the AppleEvent.
Because those files have some resource data in a data-fork.

I want to send them via AFP using AppleEvent, because the files have some resource data in a data-fork.

If a Browser downloads image files, those resource data aren't included in files downloaded.

If a browser downloads the image files, the resource data will not be included in the download.

I already prepared a program of the AppleScript to send files by using a IP address of a client and a full path of a file that a client selected.

I prepared an AppleScript to send files using the client's IP address and a full path of the selected file.

But when the CGI in the Perl language executed the AppleScript one via the osascript command, I was aware it is impossible to do that.

When the CGI in the Perl language tried to execute the AppleScript via the osascript command, it seemed to be impossible.

Ordinarily, it seems the osascript command is executed as user "www".

Ordinarily, the osascript command is executed as user "www."

In this case, the command is denied permission.

In this case, the command is denied permission.

To clear the problem is very hard for me.

Clearing this problem has been very difficult for me.

I seem to have to compile the suEXEC command personally.

It seems that I need to compile the suEXEC command manually.

I knew it when I read this web page: http://lists.runrev.com/pipermail/use-revolution/2007-March/096041.html.

I realized this when I read this web page: http://lists.runrev.com/pipermail/use-revolution/2007-March/096041.html.

Things I need to do are to get the source of Apache, and to compile it, and to move the suEXEC command into an applicable directory.

I need to get the source of Apache, compile it, and move the suEXEC command into an applicable directory.

I wonder can I do that?

How can I do that?

postscript:
I did! My CGI executed the osascript :-)
Wednesday, 21 May 2008 17:48:21 +0900

Postscript:
I did! My CGI executed the osascript :-)
Wednesday, 21 May 2008 17:48:21 +0900

1 comments:

PsychoCat said...

プログラミングの話題で添削してもらいました。専門的なことを書いているのか、一般的なことを書いているのか、自分では判断できなくなってしまいました。どちらにせよ、今回の話題のレベルなら添削してもらえるようです。(添削の内容制限のアナウンスは書いてないから当然なのでしょう)

もっとも、私には今度な技術の話題は書けませんが(^^)ゞ

それにしても、ブラウザーのエディターでの改行をHTMLのタグに反映させる設定にしていると、不便ですね。今さら、過去のデータに<P>タグなどをつけていれないから、段落スペースをコントロールするためには改行なしのデータをアップするしかない。最初の設定時に判断ミスした(><)