home *** CD-ROM | disk | FTP | other *** search
/ Peanuts NeXT Software Archives / Peanuts-2.iso / Developer / webobjects / extensions / win-nt / NTPerl5-109.exe / ntt / Comp / script.ntt < prev    next >
Encoding:
Text File  |  1996-04-16  |  1.4 KB  |  50 lines

  1. #Portions (c) 1995 Microsoft Corporation. All rights reserved. 
  2. #        Developed by hip communications inc., http://info.hip.com/info/
  3.  
  4. #!./perl
  5.  
  6. # $RCSfile: script.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:23 $
  7.  
  8. print "1..3\n";
  9.  
  10. # Removed the './' at the start of the command.  GJRL
  11. #$x = `perl -e 'print "ok\n";'`;
  12.  
  13. # WYT 1995-05-02 (wyt@hip.com)
  14. # escaped quotes and backslashes to cope with braindead MS-DOG
  15. $x = `perl -e "print \\\"ok\\n\\\""`;
  16.  
  17. #
  18. # Commented out - no meaning here.  GJRL
  19. #if ($x =~ /DCL-W-NOCOMD/) { $x = `\$ mcr sys\$disk:[]perl. -e "print ""ok\n""";`; }
  20.  
  21. if ($x eq "ok\n") {print "ok 1\n";} else {print "not ok 1\n";}
  22.  
  23. open(try,">Comp.script") || (die "Can't open temp file.");
  24. print try 'print "ok\n";'; print try "\n";
  25. close try;
  26.  
  27. #
  28. # Removed the './' at the start of the command.  GJRL
  29. $x = `perl Comp.script`;
  30.  
  31. #
  32. # Commented out - no meaning here.  GJRL
  33. #if ($x =~ /DCL-W-NOCOMD/) { $x = `\$ mcr sys\$disk:[]perl. Comp.script`; }
  34.  
  35. if ($x eq "ok\n") {print "ok 2\n";} else {print "not ok 2\n";}
  36.  
  37. #
  38. # Removed the './' at the start of the command.  GJRL
  39. $x = `perl <Comp.script`;
  40.  
  41. #
  42. # Commented out - no meaning here.  GJRL
  43. #if ($x =~ /DCL-W-NOCOMD/) { $x = `\$ mcr sys\$disk:[]perl. <Comp.script`; }
  44.  
  45. if ($x eq "ok\n") {print "ok 3\n";} else {print "not ok 3\n";}
  46.  
  47. #
  48. # Line modified to call del function.  GJRL
  49. unlink 'Comp.script' || `del/q/f Comp.script`;
  50.