ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am trying to write a web based backup control mechanism for my operators. I am having good success except with the 'dump' command itself. I am using 'expect' to control the responses to 'dump' and I am using PHP-CLI to fork the dump command so an auto refresh web page will display the progress.
The problem is that I need to run the command as 'apache' which of course controls the web pages. I put the Apache user in the 'sudoers' file so it can run the command. So far all is normal. I can run everything from the command line as root so I know all the scripts are working. Where I am having the problem is when the Apache user launches the expect script. The 'dump' command starts fine and gets to Pass I. After running that pass briefly (it may be trying to start pass II but never puts that message out) it simply terminates. I have searched every log I could find but there are no error messages anywhere. Does anyone have any ideas why this might be happening or at least where or what I can do to get some kind of reason for the termination? Thanks.