I wrote a short script to run lampp's php script. It is residing on rc.local where I first run opt/lampp/lampp and then, run the sh (which is infinite) that is echoing to the output buffer infinitely.

Problem is, I don't know how to find that terminal window. I tried Ctrl + Alt + F1 - F6 but did not find it anywhere.



Just save it to a file. If you are running your script by using something like this in /etc/rc.local:


Change that to:

/path/to/script > /tmp/script.out 2>/tmp/script.err

That will create the two files /tmp/script.out and /tmp/script.err which will contain the script's output and error messages respectively.

  • ... and watch the output using tail -f I guess? This is useful, but I would like to see the output buffer nonetheless – Ted Jul 8 '16 at 16:24
  • @Ted I'm not at all sure there is one. If there is, you might be able to find it looking at the relevant ps line and seeing if a specific tty is listed. I would bet there isn't though. – terdon Jul 8 '16 at 16:28
  • Interesting! When I reboot, I CAN see the output for a second or two, then it restarts! – Ted Jul 8 '16 at 16:41
  • @Ted I don't understand what you mean. You see it where? And when? While the system is shutting down to restart or while it is starting up again? – terdon Jul 8 '16 at 16:42
  • When X closes, upon restart (when computer shuts down). Also, ps -aux shows tty1 and tty7, and when I ctrl+alt+F1 I get a login prompt only – Ted Jul 8 '16 at 16:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.