So it works, but quits working when you redirect the output? That's not a problem in my code and I can't see what's wrong from here.
Yes. Is there some way to get perl to write the logfile so we can skip bash interaction?
Does not work. I actually tried this one too. The logfile is blank. I tried >> as well, to no avail.
Sorry, but "does not work" is not an error message I can parse.
Um, I said "the logfile is blank" that would be my description of the problem.
Undent the shebang! If you just pasted from e-mail, you have to start the #! on the first character of the first line or your shell will try to pretend it is a bash script.
Stupid me! Sorted.
scripts:$ perl eric2log $(pidof inkscape) > logfile
Still "does not work" because the logfile is blank. Go figure.
If I remove the > logfile part it immediately logs to the console.
/d