[p4] Tools question: path to search for executable?

Jamie.Echlin@barclayscapital.com Jamie.Echlin at barclayscapital.com
Tue Jan 15 02:38:07 PST 2008


On windows anyway it inherits the environment of p4v, and you can run
programs with a relative path. A quick glance at process monitor shows
it calls QProcess::start, which doesn't require an absolute path. 

Try a custom tool that is "env > myenv.txt", so you can see what the
environment is? 

> -----Original Message-----
> From: perforce-user-bounces at perforce.com 
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of 
> Steve Williams
> Sent: 14 January 2008 23:25
> To: Gross, Steve
> Cc: perforce-user at perforce.com
> Subject: Re: [p4] Tools question: path to search for executable?
> 
> Could it be similar to the repository hooks in Subversion 
> where the hooks are executed with an empty environment, i.e. no path?
> 
> --
> Sly
> 
> Gross, Steve wrote:
> > I'm writing a custom tool that runs an app named 'foo'. foo is 
> > executable and in the path; however, the tool reports 
> "unable to run 
> > foo" if I only specify the name 'foo' in the custom tool. If I list 
> > the full path (/usr/local/scm/bin/foo), it does indeed run.
> >
> > Is there a solution to this? I prefer NOT to list the 
> absolute path, 
> > in case the file is relocated.
> >
> > Thanks,
> > --Steve
> >
> >   
> 
> 
> 
> This message and its attachments may contain legally 
> privileged or confidential information. This message is 
> intended for the use of the individual or entity to which it 
> is addressed. If you are not the addressee indicated in this 
> message, or the employee or agent responsible for delivering 
> the message to the intended recipient, you may not copy or 
> deliver this message or its attachments to anyone. Rather, 
> you should permanently delete this message and its 
> attachments and kindly notify the sender by reply e-mail. Any 
> content of this message and its attachments, which does not 
> relate to the official business of the sending company must 
> be taken not to have been sent or endorsed by the sending 
> company or any of its related entities. No warranty is made 
> that the e-mail or attachment(s) are free from computer virus 
> or other defect.
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com 
> http://maillist.perforce.com/mailman/listinfo/perforce-user
> 
------------------------------------------------------------------------
For important statutory and regulatory disclosures and more information about Barclays Capital, please visit our web site at http://www.barcap.com.

Internet communications are not secure and therefore the Barclays Group does not accept legal responsibility for the contents of this message.  Although the Barclays Group operates anti-virus programmes, it does not accept responsibility for any damage whatsoever that is caused by viruses being passed.  Any views or opinions presented are solely those of the author and do not necessarily represent those of the Barclays Group.  Replies to this email may be monitored by the Barclays Group for operational or business reasons.

Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays Group.
------------------------------------------------------------------------



More information about the perforce-user mailing list