Page 1 of 1

Using Perforce

Posted: Tue Nov 11, 2008 5:57 pm
by TheBigDuck
Hi,

I'd like create a UI using Revolution and then use the Perforce API to send Perforce commands to a Perforce Server.

Can this be done with Revolution?

Perforce offers Perl, Ruby and C++ API's, does Revolution offer some bridge to these languages?

Thanks in advance!

Posted: Tue Nov 11, 2008 7:46 pm
by malte
Do you have a link handy?

Cheers,

Malte

Handy Link

Posted: Wed Nov 12, 2008 4:09 pm
by TheBigDuck

Posted: Wed Nov 12, 2008 4:45 pm
by Klaus
Hi Duck,

quick guess, you could use the Perforce command line tool p4 and then use "shell" to do what you want.


Best

Klaus

VBScript for perforce

Posted: Wed Nov 12, 2008 5:25 pm
by mcgrath3
You can also use vbscript from within Revolution to interact with Perforce.

You can use p4 change and p4 submit -i

Example VBScripts can be found here:

http://public.perforce.com/guest/robert ... 4com/main/

Tom McGrath III
Lazy River Software
3mcgrath@comcast.net

iTunes Library Suite - libITS
Information and download can be found on this page:
http://www.lazyriversoftware.com/RevOne.html

I am getthing closer...

Posted: Wed Nov 12, 2008 8:47 pm
by TheBigDuck
Ok, I can see how I can send shell commands.

In Terminal, I do "p4 info" and I get
Perforce client error:
Connect to server failed; check $P4PORT.
TCP connect to perforce failed.
perforce: host unknown.

Which is fine, this means the p4 command executed, but didn't have enough info to connect.

In Revolution, I do:
put shell ("p4 info")

and get: /bin/sh: line 1: p4: command not found

Any help?

The answer

Posted: Fri Nov 14, 2008 3:46 pm
by TheBigDuck
You have type the path to the executable which is at usr/bin/p4

so

put shell ("usr/bin/p4 info") works like a champ.

Thanks for everyone's help.