My first script creates an output file, which the second script needs to parse real-time. Using system command, I was teeing and tailing the files as follows
system("sc1.pl | tee out1.out | tail -f out1.out | sc2.pl | tee out2.out");
Both the output files get created but are empty. I can't install any modules on the machine I'm on so forking is not possible. Any simple solution I'm overlooking?
system("sc1.pl | tee out1.out | tail -f out1.out | sc2.pl | tee out2.out");
Both the output files get created but are empty. I can't install any modules on the machine I'm on so forking is not possible. Any simple solution I'm overlooking?