A
anywherenotes
I have a rather interesting requirement.
I have 2 perl scripts, and one of them should execute the other one.
So lets say script a.pl should execute script b.pl.
The output of the script b.pl should go into a specific file which only
a.pl knows about.
So I could do this from a.pl:
system("perl b.pl >>mylog.log 2>&1");
But is there a better way?
Currently I am doing this:
require "b.pl";
But it doesn't redirect the output as I want it to.
I am a perl noobie, so I am probably overlooking the correct way of
doing this.
I have 2 perl scripts, and one of them should execute the other one.
So lets say script a.pl should execute script b.pl.
The output of the script b.pl should go into a specific file which only
a.pl knows about.
So I could do this from a.pl:
system("perl b.pl >>mylog.log 2>&1");
But is there a better way?
Currently I am doing this:
require "b.pl";
But it doesn't redirect the output as I want it to.
I am a perl noobie, so I am probably overlooking the correct way of
doing this.