Pulse, Proxy and Mobile

Trying to get the mobile app working with our Deadline 6 setup and I’m really close. Trying to figure out where I need to pre-pend cgi-bin as per the instructions on the site:

“you must prepend ‘\cgi-bin\’ to the URI regular expression test in the scripts.”

I’ve made multiple attempts but nothing seems to work when I add cgi-bin to this line in the Mobile_GetJobs script:

if( $URI =~ m//(us|canada|switzerland)/Mobile_GetJob(List|Details).*$/)

I can hack around in scripts but it’s not my strong suit. Any help is appreciated.

Thanks!

Vaughn

Wow! I haven’t actually looked at this in forever. It looks like we had a whole bunch of deployment specific junk in there for different offices.

I’ve now gutted that out so it should be a drop-in script now, no mods needed.

We just check the request against a regular expression to see if it matches, and forward the text along if it does.

Let me know if it works for you and I’ll update the download section.
Mobile_GetJobDetails.txt (2.03 KB)

Thanks Edwin, I dropped this little project for a while but have recently picked it back up. I’m still not sure how the Pulse server or the proxy know where the other is. Using your new script has moved me a bit forward but now I have an odd permissions issue. I have another script (awstats) in my cgi-bin folder and that is working so not sure what the deal is. I’m not even sure how to ask you where I go from here. Ha.

Thanks.

V

Good catch. I definitely managed to remove the host variable in there… Change 127.0.0.1 to the right host name or IP address.

I’ve added it back in here. The proxy opens a TCP socket to Pulse and puts a really really simple HTTP request in. Any response coming from Pulse gets pushed back to the requester, then the script exits.

If it’s a permissions error, it might be that the script is not executable by the web server if it’s running on a Unix machine. CGI scripts are run as stand alone programs by the web server. The server puts everything the requesting client sent to the program’s standard input, and pipes everything from the programs standard output back to the requesting client. It’s simple, but it works.

Attaching the script with the host name fix here.
Mobile_GetJobDetails.txt (2.08 KB)