0

I"m calling a perl script stored in one PC, for example with name machine1 from say machine2 using the command:

system("perl /CC/builds/123.pl\n");

Now, i need to get the log of the whole perl file executed to be stored in a say 123.txt file and created on machine1.Can any text file be opened in the perl file at the beginning which stored only output of the line executed? Please help.

Thanks, Ramki

ramki067
  • 69
  • 1
  • 6

1 Answers1

0

I'm quite new on that and I don't know if I am understanding your question, but why you don't use "backticks" instead of "system"? It would let you store the output in a variable and then you can do with this variable whatever you want.

About backticks: What's the difference between Perl's backticks, system, and exec?

Community
  • 1
  • 1
Jose
  • 64
  • 5