codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Using a Pipe | with a Variable Name!  mmarab at 15:28 on Thursday, November 23, 2006
 

Hi,

I am using the following code:

$diffCommand = "tool actionpaint " . $baseline1 . "@/projects" . " " . $baseline2 . "@/projects";

if (not(open DIFF_HDL, $diffCommand."|"))


Basically i create a command which is used in command line window, this command is created depending on previous information, hence it is joined together and stored in $diffcommand.
But when i try to use a pipe with the $diffCommand variable in the if statement, whithin the open(,) command it doesn't work, the command line thinks its part of the string and not a pipe. I also tried this:

if (not(open DIFF_HDL, $diffCommand|))

but it gave me a compilation error, any help?

Thanks.

  Re: Using a Pipe | with a Variable Name!  Gord T at 23:30 on Thursday, November 23, 2006
 

What compiler are you using?

  Re: Using a Pipe | with a Variable Name!  mmarab at 07:59 on Friday, November 24, 2006
 

I installed active Perl!

  Re: Using a Pipe | with a Variable Name!  mmarab at 13:47 on Wednesday, November 29, 2006
 

I solved the problem, | was on the wrong side, what a stupid mistake!








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: Problem with concatenation
•  how to genrates the crystal report by sending a id at runtime
•  help me
•  pls help me with this..
•  Re: Security - Code verify
•  Job @ EarlySail
•  Job @ EarlySail (perl)
•  IPC problem
•  Re: import contacts of msn/yahoo


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007