Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. edwards76

    problem using embedded 'unix' command

    Great! I used the batch file technique, and it works like a charm (although I had to parse the output to get the exact string I was expecting). Thanks so much to both of you-- Jim
  2. edwards76

    problem using embedded 'unix' command

    Mike, You're right about the path--thanks. Unfortunately, that doesn't fix the cal problem (it just makes the other unix commands work with the entire path). Scotty, I printed out the length of $a and it's 0. This does sound like an environment problem, doesn't it? Any ideas where to poke...
  3. edwards76

    problem using embedded 'unix' command

    Scotty, I'm pretty sure that's not the problem. Here's my test program: #!/usr/bin/perl use CGI qw(:standard :html3); # unbuffered STDOUT $|=1; print header; my ($a, $b); $a = `cal 9 2003`; $b = `date`; print &quot;$a&quot;; print &quot;<p>and then...<p>&quot;; print &quot;$b&quot...
  4. edwards76

    problem using embedded 'unix' command

    Hi Mike, Yeah, I have tried that--the weird thing is that when I use the entire path (c:\cygwin\bin\cal), the perl compiler at the command line breaks also. Not sure why that is, but I don't think it's related to my problem, because, as I said, a bunch of the other unix commands work fine...
  5. edwards76

    problem using embedded 'unix' command

    I'm not sure if this is a perl, apache or windows problem, or what. But I'm completely stuck, and I'd appreciate any thoughts you might have: I'm having trouble using the cal command (it's the unix command ported to windows) in my perl file. I'm running Apache 2.0.47 along with cygwin on XP...

Part and Inventory Search

Back
Top