[p4] New user question
Weintraub, David
david.weintraub at bofasecurities.com
Tue Jun 6 10:32:59 PDT 2006
Either Perl or Python is fine. You can download Perl or Python from
ActiveState (http://www.activestate.com) for free. You can get the P4API
for both Perl and Python from
<http://public.perforce.com/guest/tony_smith/perforce/API/Perl/index.htm
l> and
<http://public.perforce.com/guest/robert_cowham/perforce/API/python/inde
x.html>.
VisualBasic is not a good choice even in a Microsoft environment because
it doesn't have an interface with the P4API, and it doesn't play well
with other programs. For example, you can always do this in Perl if you
don't want to use the API:
# Read and Write a Group
open (P4_CMD, "p4 group -o foo|");
while (<P4_CMD>) {
[Some sort of processing...]
}
open (P4_CMD, "|p4 group -i");
print P4_CMD "Group: $group\n"; #Or Whatever...
[more "print P4_CMD" statements...]
close (P4_CMD);
Doing something similar in VB is much more difficult.
-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Ron Gafron
Sent: Tuesday, June 06, 2006 10:33 AM
To: perforce-user at perforce.com
Subject: [p4] New user question
I am a new P4 user, and still trying to learn the ropes. Work in a
Microsoft environment.
I'd like to do some scripting to help ease some tasks. Being as we
worship at the altar of Microsoft, I suppose we should be using
VBScript, but seeing as I prefer to be a general pain in the neck :-),
I'd probably use Perl or Python instead. I currently don't know any of
them.
Do any of the scripting languages offer advantages from a P4 standpoint?
Thanks for any thoughts you might have.
Ron Gafron
_______________________________________________
perforce-user mailing list - perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
More information about the perforce-user
mailing list