| Sign In/My Account | View Cart |
| Article: |
Build an iTunes Remote Control | |
| Subject: | Doesn't work | |
| Date: | 2005-03-19 09:32:50 | |
| From: | Cool6324 | |
| I've tried everything, changed permissions on the files it doesn't work. The .pl scripts don't work, because when I call for them nothing happenes. Please tell mme what might I do? I have some idea's for this plus new scripts, so if I can get it to work it's be great. | ||
Showing messages 1 through 13 of 13.
Doesn't worktotal 200
drwxrwxr-x 23 parisbut www 782 19 Mar 12:25 .
drwxrwxr-x 5 root admin 170 18 Mar 19:43 ..
-rw-rw-rw- 1 parisbut admin 12292 19 Mar 12:25 .DS_Store
-rwxr-xr-x 1 parisbut parisbut 265 28 Feb 20:08 FastForward.pl
-rwxr-xr-x 1 parisbut parisbut 980 25 Feb 22:31 FastForward.scpt
-rwxr-xr-x 1 parisbut parisbut 263 28 Feb 20:08 MuteUnMute.pl
-rwxr-xr-x 1 parisbut parisbut 1018 25 Feb 22:41 MuteUnMute.scpt
-rwxr-xr-x 1 parisbut parisbut 265 28 Feb 20:08 PlayPause.pl
-rwxr-xr-x 1 parisbut parisbut 984 25 Feb 22:30 PlayPause.scpt
-rw-r--r-- 1 parisbut parisbut 1137 27 Feb 19:18 README
-rwxr-xr-x 1 parisbut parisbut 264 28 Feb 20:08 RandomTrack.pl
-rwxr-xr-x 1 parisbut parisbut 5794 27 Feb 20:37 RandomTrack.scpt
-rwxr-xr-x 1 parisbut parisbut 259 28 Feb 20:09 Rewind.pl
-rwxr-xr-x 1 parisbut parisbut 974 25 Feb 22:31 Rewind.scpt
-rwxr-xr-x 1 parisbut parisbut 263 28 Feb 20:09 VolumeDown.pl
-rwxr-xr-x 1 parisbut parisbut 1038 25 Feb 22:36 VolumeDown.scpt
-rwxr-xr-x 1 parisbut parisbut 261 28 Feb 20:09 VolumeUp.pl
-rwxr-xr-x 1 parisbut parisbut 1036 26 Feb 00:30 VolumeUp.scpt
-rwxr-xr-x 1 parisbut parisbut 217 27 Feb 19:19 hello.wml
-rwxr--r-- 1 parisbut parisbut 1027 27 Feb 19:17 iTunesRemoteControlDaemon.scr
-rwxr-xr-x 1 parisbut parisbut 159 26 Feb 01:29 index.pl
-rwxr--r-- 1 parisbut parisbut 909 27 Feb 19:19 killRemoteControlDaemon.scr
-rw-r--r-- 1 parisbut parisbut
625 27 Feb 20:36 menu
Doesn't work
Doesn't work
Doesn't work
Doesn't workUsage: prompt$./iTunesRemoteControlDaemon.scr &
Doesn't work
Doesn't work
Specifically, in your directory containing all of the perl scripts, type "ls -al" and paste the output into "pre" tags in your follow up. That provides full information about file permissions.
If you type http://localhost in your browser, do you get the default apache page?
If you type http://YOUR-IP-ADDRESS in your browser, do you get the same default page?
If you try to run a very simple Perl script like the one below, do you get it to display the text you expect from the command line?
When you try it in your browser, what happens?
What is the exact URL you're using to try and access in it?
What directory are you storing the file into on your local disk (should probably be /Library/WebServer/CGI-Executables/)?
#!/usr/bin/perl
print "Content-type: text/vnd.wap.wml\n\n";
print "<html><head><title>hello there</title></head>\n";
print "<body>how are ya doin'?</body></html>\n";
I'll check back here periodically. Keep me updated; let's get it working.