Automation of a console PHP script.

Posted on 2005-03-07
Medium Priority
Last Modified: 2010-04-21
I have a theatre PHP application I made which I have automatically run whenever anyone logs into the account 'theatre'.  I have done this by adding the line 'php /usr/share/theatre/theatre.php' to '.bash_profile' of the user.  This works fine for invoking the script, but I also want it to automatically log out of 'theatre' if a user attempts to close the program.  How can this be accomplished?  Thanks in advance for your help!
Question by:partiallynothing
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Author Comment

ID: 13478411
Another idea I had was to make something like '/bin/theatre_control' the user's shell with something like this in it:

php /usr/share/theatre/theatre_sound.php

But this did not work.  Any ideas?
LVL 16

Expert Comment

ID: 13492706
Because probably your hash-bang is incorrect....its

and not


Accepted Solution

modulo earned 0 total points
ID: 13692703
PAQed with no points refunded (of 125)

Community Support Moderator

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question